/* === MERGED: home-reference-alignment.css === */
/* JUFbook Homepage Professional Restoration — Build 144
   Reference: the approved 2026-08-22 homepage recording.
   This is the single homepage presentation authority. It replaces the former
   sequence of accumulated phase overrides while retaining current DB-driven
   markup, accessibility and interaction behavior. */

.juf-homepage {
    --home-border: #D9D6D0;
    --home-paper: #FFFFFF;
    --home-ink: #282E37;
    --home-muted: #5B6376;
    --home-teal: #3B4256;
    --home-rust: #3B4256;
    --home-section-gap: 46px;
}

.juf-homepage .site-main > section {
    margin-bottom: var(--home-section-gap);
}

.juf-homepage .page-section-title,
.juf-homepage .section-title-wrap-flex h2,
.juf-homepage .books-showcase-head h2 {
    margin: 0;
    color: var(--home-ink);
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: clamp(25px, 2vw, 29px) !important;
    font-weight: 500 !important;
    line-height: 1.22 !important;
}

.juf-homepage .section-title-wrap-flex,
.juf-homepage .books-showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px !important;
}

.juf-homepage .section-head-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.juf-homepage .section-view-all {
    color: var(--home-ink);
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.juf-homepage .slider-nav-ctrl {
    display: inline-flex;
    gap: 7px;
}

.juf-homepage .slider-ctrl-btn,
.juf-homepage .author-nav-arrow {
    display: inline-grid;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    place-items: center;
    padding: 0;
    border: 1px solid var(--home-border);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--home-ink);
    box-shadow: 0 4px 12px rgba(40, 46, 55, .045);
    cursor: pointer;
}

.juf-homepage .slider-ctrl-btn:hover,
.juf-homepage .slider-ctrl-btn:focus-visible,
.juf-homepage .author-nav-arrow:hover,
.juf-homepage .author-nav-arrow:focus-visible {
    border-color: var(--home-teal);
    background: var(--home-teal);
    color: #FFFFFF;
}

.juf-homepage .slider-nav-ctrl.is-not-needed {
    display: none;
}

.juf-homepage .slider-ctrl-btn:disabled {
    opacity: .36;
    pointer-events: none;
}

.juf-homepage :where(
    .home-author-premium-rail,
    .home-audiobook-media-track,
    .home-genre-visual-track,
    .authors-circle-slider-track
) {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.juf-homepage :where(
    .home-author-premium-rail,
    .home-audiobook-media-track,
    .home-genre-visual-track,
    .authors-circle-slider-track
)::-webkit-scrollbar {
    display: none;
}

/* Hero — approved spacious editorial geometry. Motion is owned exclusively by
   jufbook-hero-original-motion.css and main.js. */
.juf-homepage .hero-cinematic-stage {
    min-height: 420px !important;
    height: 420px !important;
    margin: 18px 0 42px !important;
    overflow: hidden;
    border: 1px solid #D9D6D0;
    border-radius: 26px !important;
    background: #ECEAE6;
    box-shadow: 0 14px 38px rgba(40, 46, 55, .045), 0 2px 8px rgba(40, 46, 55, .025);
}

.juf-homepage .hero-cinematic-slider {
    min-height: 420px !important;
    height: 100% !important;
}

.juf-homepage .hero-slide-item {
    padding: 32px 60px 106px !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, .82fr) !important;
    align-items: center;
    gap: 42px !important;
}

.juf-homepage .hero-slide-info {
    max-width: 570px;
}

.juf-homepage .hero-slide-badge {
    margin-bottom: 8px !important;
    color: var(--home-teal) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.juf-homepage .hero-slide-title {
    margin: 0 0 8px !important;
    color: var(--home-ink) !important;
    font-family: var(--font-display-literary, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: clamp(30px, 2.8vw, 36px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.juf-homepage .hero-slide-author {
    margin-bottom: 13px !important;
    color: #282E37 !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 17px !important;
    font-weight:500 !important;
}

.juf-homepage .hero-slide-author strong {
    font-weight: 600 !important;
}

.juf-homepage .hero-slide-desc {
    max-width: 58ch;
    margin: 0 0 24px !important;
    color: #5B6376 !important;
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 18px !important;
    line-height: 1.72 !important;
}

.juf-homepage .hero-slide-actions {
    gap: 12px !important;
}

.juf-homepage .hero-slide-actions a {
    min-height: 44px !important;
    padding: 9px 22px !important;
    border-radius: 12px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.juf-homepage .hero-slide-visual {
    /* Keep the cover visible through the tablet breakpoint; legacy public
       styles hid this entire column between the mobile and desktop rules. */
    display: flex;
}

.juf-homepage .hero-slide-visual .hero-jacket {
    width: 180px !important;
    min-width: 180px !important;
    height: 270px !important;
    min-height: 270px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 9px !important;
}

.juf-homepage .hero-visual-art-aura,
.juf-homepage .hero-bg-art-layer > * {
    display: none;
}
.juf-homepage .hero-bg-art-layer {
    background: color-mix(in srgb, var(--slide-theme) 4%, #ECEAE6);
}

.juf-homepage .hero-thumb-queue {
    right: 46px !important;
    bottom: 18px !important;
    gap: 10px !important;
}

.juf-homepage .hero-thumb-card {
    width: 44px !important;
    height: 66px !important;
    padding: 0 !important;
    overflow: hidden;
    align-items: stretch !important;
    border: 1px solid rgba(59, 66, 86, .14) !important;
    border-radius: 7px !important;
    background: #ECEAE6 !important;
    box-shadow: 0 4px 10px rgba(40, 46, 55, .08) !important;
}

.juf-homepage .hero-thumb-card:hover {
    box-shadow: 0 6px 14px rgba(40, 46, 55, .10) !important;
}

.juf-homepage .hero-thumb-card.current-thumb {
    border-color: rgba(59, 66, 86, .48) !important;
    box-shadow: 0 7px 14px rgba(40, 46, 55, .12), 0 0 0 1px rgba(59, 66, 86, .20) !important;
}

.juf-homepage .thumb-mini-jacket {
    min-width: 0;
    width: 100%;
    height: 100%;
}
.juf-homepage .thumb-mini-jacket > .juf-book-jacket,
.juf-homepage .thumb-mini-jacket > .juf-book-jacket.hero-thumb-cover {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transform: none !important;
}
.juf-homepage .thumb-mini-jacket .juf-book-cover-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
.juf-homepage .thumb-mini-jacket .juf-cover-category,
.juf-homepage .thumb-mini-jacket .juf-cover-byline {
    display: none !important;
}
.juf-homepage .thumb-mini-jacket .juf-cover-copy {
    inset: auto 8% 7% !important;
    gap: 0 !important;
}
.juf-homepage .thumb-mini-jacket .juf-cover-name {
    display: -webkit-box !important;
    color: #282E37 !important;
    font-family: var(--font-book-title, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 6px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

.juf-homepage .hero-cinematic-arrows {
    left: 48px !important;
    bottom: 26px !important;
    gap: 9px !important;
}

.juf-homepage .hero-cinematic-arrow-btn {
    width: 38px !important;
    height: 38px !important;
}

/* Continue reading — compact utility, never a competing hero. */
.juf-homepage .home-reading-gateway {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: var(--home-paper);
}

.juf-homepage .home-reading-cover,
.juf-homepage .home-reading-cover > .juf-book-jacket {
    width: 48px !important;
    height: 66px !important;
    min-height: 66px !important;
}

.juf-homepage .home-reading-gateway-copy h2 {
    margin: 1px 0 2px;
    font-family: var(--font-book-title, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
}

/* Author discovery cards. Real Author Media portraits stay transparent; a
   missing file produces a balanced text-only card, never a generated circle. */
.juf-homepage .home-authors-discovery {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.juf-homepage .home-authors-discovery .sub-tabs-row {
    display: flex;
    gap: 20px;
    margin: -3px 0 16px !important;
    padding: 0;
    overflow-x: auto;
    border: 0;
}

.juf-homepage .home-authors-discovery .sub-tab-item {
    flex: 0 0 auto;
    padding: 4px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5B6376 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

.juf-homepage .home-authors-discovery .sub-tab-item.active {
    color: var(--home-teal) !important;
    font-weight: 600 !important;
}

.juf-homepage .home-author-premium-rail {
    --author-gap: 12px;
    display: flex;
    gap: var(--author-gap);
    overflow-x: auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    padding: 3px 2px 10px;
    scroll-behavior:smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.juf-homepage .home-author-premium-rail::-webkit-scrollbar { display:none; }

.juf-homepage .home-author-discovery-card.is-visual {
    position: relative;
    isolation:isolate;
    display: grid;
    flex: 0 0 calc((100% - (var(--author-gap) * 3)) / 4) !important;
    width: calc((100% - (var(--author-gap) * 3)) / 4) !important;
    min-width: calc((100% - (var(--author-gap) * 3)) / 4) !important;
    min-height: 148px !important;
    height: 148px !important;
    grid-template-columns: minmax(0, 1fr) minmax(78px,34%);
    align-items: stretch;
    gap: 6px;
    padding: 14px 9px 12px 14px !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb,var(--cat-accent) 22%,#D9D6D0) !important;
    border-radius: 17px !important;
    background: var(--cat-bg, #EADAC6) !important;
    background-color: var(--cat-bg, #EADAC6) !important;
    background-image: none !important;
    color: var(--cat-ink,#282E37) !important;
    box-shadow: 0 8px 21px rgba(40, 46, 55, .052) !important;
    scroll-snap-align: start;
    text-decoration: none;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.juf-homepage .home-author-discovery-card.is-visual::before {
    display: none !important;
    content: none !important;
    background: none !important;
}
.juf-homepage .home-author-discovery-copy {
    position: relative;
    z-index: 4;
    align-self: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.juf-homepage .home-author-discovery-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 6px !important;
    padding: 4px 7px !important;
    border: 1px solid color-mix(in srgb,var(--cat-accent) 20%,rgba(59, 66, 86, .10));
    border-radius: 999px;
    background: rgba(236, 234, 230, .66) !important;
    color: var(--accent, #3B4256) !important;
    box-shadow:0 2px 9px rgba(40, 46, 55, .03);
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height:1.15 !important;
}
.juf-homepage .home-author-discovery-card .home-author-discovery-copy h3 {
    display:-webkit-box;
    margin: 0 0 4px !important;
    overflow:hidden;
    color: var(--cat-ink,#282E37) !important;
    font-family: var(--font-display-literary, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 16.2px !important;
    font-weight: 500 !important;
    line-height: 1.18 !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.juf-homepage .home-author-discovery-card .home-author-discovery-copy p {
    display: -webkit-box;
    max-width: 27ch !important;
    margin: 0 !important;
    overflow: hidden;
    color: var(--muted, #5B6376) !important;
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 11.2px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.juf-homepage .home-author-discovery-visual {
    position: relative;
    z-index:2;
    display:flex;
    align-items:flex-end;
    justify-content:flex-end;
    min-width:0;
    min-height:0;
    overflow:visible;
}
.juf-homepage .juf-home-author-category-motif {
    position:absolute;
    inset:3px -3px 2px 0;
    pointer-events:none;
    opacity:.18;
}
.juf-homepage .juf-home-author-category-motif i { position:absolute; display:block; }
.juf-homepage .juf-home-author-category-motif i:nth-child(1) {
    width:100px;height:100px;right:-25px;top:4px;
    border:1px solid color-mix(in srgb,var(--cat-accent) 32%,transparent);
    border-radius:50%;
}
.juf-homepage .juf-home-author-category-motif i:nth-child(2) {
    width:34px;height:34px;right:48px;bottom:12px;
    border-radius:50%;
    background:color-mix(in srgb,var(--cat-accent) 13%,transparent);
}
.juf-homepage .juf-home-author-category-motif i:nth-child(3) {
    width:90px;height:44px;right:-7px;bottom:9px;
    border-top:1px solid color-mix(in srgb,var(--cat-accent) 25%,transparent);
    border-radius:50%;
    transform:rotate(-9deg);
}
.juf-homepage .home-author-discovery-card.has-category-image .juf-home-author-category-motif { opacity:.10; }
.juf-homepage .home-author-discovery-card .home-author-discovery-image {
    position:relative;
    z-index:3;
    display:block;
    width:110px !important;
    height:135px !important;
    max-width:none !important;
    margin:0 -6px -5px 0 !important;
    object-fit:contain !important;
    object-position:center bottom !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    filter:drop-shadow(0 7px 9px rgba(40, 46, 55, .10));
    mix-blend-mode:normal !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
}

/* Audiobook shelf — the artwork has one fixed book size on every desktop card. */
.juf-homepage #audiobook {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.juf-homepage .home-audiobook-media-track {
    --audio-gap: 16px;
    display: flex;
    gap: var(--audio-gap);
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x mandatory;
}

.juf-homepage .audio-media-card {
    display: grid !important;
    flex: 0 0 calc((100% - (var(--audio-gap) * 3)) / 4) !important;
    width: calc((100% - (var(--audio-gap) * 3)) / 4) !important;
    min-width: calc((100% - (var(--audio-gap) * 3)) / 4) !important;
    min-height: 94px !important;
    height: auto !important;
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 13px !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 5px 16px rgba(40, 46, 55, .035) !important;
    scroll-snap-align: start;
}

.juf-homepage .audio-cover-poster,
.juf-homepage .audio-cover-poster > .juf-book-jacket,
.juf-homepage .audio-cover-poster .home-audio-cover-art {
    display: block;
    align-self: center;
    width: 52px !important;
    min-width: 52px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden;
    border-radius: 7px !important;
}

.juf-homepage .audio-media-details {
    min-width: 0;
    padding-top: 0;
}

.juf-homepage .audio-media-details h4 {
    margin: 0 0 3px !important;
    overflow: hidden;
    color: var(--home-ink) !important;
    font-family: var(--font-book-title, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 17px !important;
    font-weight:500 !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.juf-homepage .audio-media-details p,
.juf-homepage .audio-media-duration {
    display: block;
    margin: 0 !important;
    overflow: hidden;
    color: var(--home-muted) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 10.5px !important;
    opacity: 1;
    line-height: 1.42 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-homepage .audio-play-circle,
.juf-homepage .audio-open-circle {
    display: inline-grid;
    width: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    height: 34px !important;
    place-items: center;
    padding: 0;
    border: 1px solid #3B4256;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--home-ink);
    font-size: 10px;
    text-decoration: none;
    margin: 0;
    align-self: center;
}

/* Build 291 — compact Home audio cards. Scope by the existing audio rail so
   generic paragraph/heading sizes cannot expand this interface component.
   Keep responsive widths, font families, theme colors and playback intact. */
.juf-homepage #audio-track .audio-media-card {
    min-height: 88px !important;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 10px !important;
    padding: 8px 12px !important;
}
.juf-homepage #audio-track .audio-cover-poster,
.juf-homepage #audio-track .audio-cover-poster > .juf-book-jacket,
.juf-homepage #audio-track .audio-cover-poster .home-audio-cover-art {
    width: 44px !important;
    min-width: 44px !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
}
.juf-homepage #audio-track .audio-media-details h4 {
    font-size: 15px !important;
    line-height: 1.28 !important;
    margin: 0 0 3px !important;
}
.juf-homepage #audio-track .audio-media-details p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}
.juf-homepage #audio-track .audio-media-duration {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Genre discovery — six concise cards, matching the approved old density. */
.juf-homepage #genres {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.juf-homepage .home-genre-visual-track {
    --genre-gap: 14px;
    display: flex;
    gap: var(--genre-gap);
    overflow-x: auto;
    padding: 1px 1px 7px;
    scroll-snap-type: x mandatory;
}

.juf-homepage #genres :where(.genre-graphic-card, .genre-dark-box) {
    display: flex;
    flex: 0 0 calc((100% - (var(--genre-gap) * 5)) / 6) !important;
    width: calc((100% - (var(--genre-gap) * 5)) / 6) !important;
    min-width: calc((100% - (var(--genre-gap) * 5)) / 6) !important;
    min-height: 96px !important;
    height: 96px !important;
    align-items: center !important;
    justify-content: center;
    padding: 14px 10px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05) !important;
    border-radius: 12px !important;
    background: #3B4256 !important;
    box-shadow: 0 5px 14px rgba(40, 46, 55, .055) !important;
    scroll-snap-align: start;
    text-align: center;
}

/* The genre palette is intentionally breakpoint-invariant. Legacy mobile CSS
   may change card geometry, but it must not replace the desktop surface/text colors. */
.juf-homepage #genres .genre-dark-box.genre-graphic-card {
    border-color: rgba(255, 255, 255, .05) !important;
    background: #3B4256 !important;
}

.juf-homepage #genres .genre-dark-box.genre-graphic-card h4 {
    color: #FFFFFF !important;
}

.juf-homepage #genres .genre-dark-box.genre-graphic-card .genre-graphic-copy > span {
    color: rgba(255, 255, 255, .70) !important;
}

.juf-homepage #genres .genre-graphic-card::before {
    background: var(--genre-theme, var(--home-teal));
    opacity: .18;
}

.juf-homepage #genres .genre-graphic-card::after,
.juf-homepage #genres .genre-graphic-orb,
.juf-homepage #genres .genre-graphic-kicker {
    display: none !important;
}

.juf-homepage #genres .genre-graphic-copy {
    position: relative;
    z-index: 2;
}

.juf-homepage #genres :where(.genre-graphic-card, .genre-dark-box) h4 {
    margin: 0 0 4px !important;
    color: #FFFFFF !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.juf-homepage #genres :where(.genre-graphic-card, .genre-dark-box) .genre-graphic-copy > span {
    color: rgba(255, 255, 255, .70) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

/* Books Showcase — book geometry, cover typography and lower metadata restored
   as one hierarchy. Shadow supports the object; it does not define it. */
.juf-homepage .books-showcase-wrapper {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.juf-homepage .books-showcase-head {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #D9D6D0;
}

.juf-homepage .books-showcase-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid #D9D6D0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #5B6376;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.juf-homepage .books-showcase-count-pill strong {
    color: var(--home-ink, #3B4256);
    font-weight: 600;
}

html[data-theme="dark"] .juf-homepage .books-showcase-head {
    border-bottom-color: #3A3F47;
}

html[data-theme="dark"] .juf-homepage .books-showcase-count-pill {
    background: #23262B;
    border-color: #3A3F47;
    color: #A09B94;
}

html[data-theme="dark"] .juf-homepage .books-showcase-count-pill strong {
    color: #ECE8E1;
}

.juf-homepage :where(#showcase .grid-5-col, .home-new-releases .home-new-release-grid) {
    display: grid;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    margin-inline: 0 !important;
    align-items: start;
    gap: 34px 20px !important;
}

.juf-homepage :where(#showcase, .home-new-releases) .showcase-card-item {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none;
}

.juf-homepage :where(#showcase, .home-new-releases) .showcase-card-item > .juf-book-jacket {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
    border: 1px solid rgba(40, 46, 55, .14) !important;
    border-left: 4px solid rgba(40, 46, 55, .25) !important;
    border-radius: 7px 9px 9px 6px !important;
    box-shadow: 0 15px 24px rgba(40, 46, 55, .13), 0 5px 9px rgba(40, 46, 55, .075) !important;
}

.juf-homepage :where(#showcase, .home-new-releases) .showcase-card-item:hover > .juf-book-jacket {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 29px rgba(40, 46, 55, .155), 0 7px 11px rgba(40, 46, 55, .085) !important;
}

.juf-homepage :where(#showcase, .home-new-releases) .book-under-meta {
    display: grid;
    min-height: 68px;
    align-content: start;
    margin-top: 10px !important;
}

.juf-homepage :where(#showcase, .home-new-releases) .book-under-title {
    min-height: 20px;
    overflow: hidden;
    color: var(--home-ink) !important;
    font-family: var(--font-book-title, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-homepage :where(#showcase, .home-new-releases) .book-under-author {
    margin-top: 2px !important;
    overflow: hidden;
    color: #5B6376 !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 12.25px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-homepage :where(#showcase, .home-new-releases) .book-rating-gold {
    margin-top: 4px !important;
    color: #7A6130 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

.juf-homepage .pagination-numbers {
    margin-top: 30px;
}

/* Preferred authors — image may remain a profile circle, but typography is
   intentionally lighter and smaller than a section headline. */
.juf-homepage #authors {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.juf-homepage #authors .authors-premium-slider-wrapper {
    position: relative;
    padding-inline: 42px;
}

.juf-homepage #authors .authors-circle-slider-track {
    display: flex;
    gap: 27px;
    overflow-x: auto;
    padding: 10px 2px 12px;
    scroll-snap-type: x proximity;
}

.juf-homepage #authors .author-circle-unit {
    flex: 0 0 126px;
    min-width: 126px;
    scroll-snap-align: start;
}

.juf-homepage #authors .author-circle-disc {
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto 10px !important;
    border: 3px solid #FFFFFF !important;
    box-shadow: 0 6px 17px rgba(40, 46, 55, .095) !important;
}

.juf-homepage #authors .author-circle-disc > .juf-author-circle-img,
.juf-homepage #authors .author-circle-disc > .juf-author-art-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center 18% !important;
}

.juf-homepage #authors .author-circle-name {
    color: var(--home-ink) !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.juf-homepage #authors .author-circle-title {
    margin-top: 2px !important;
    color: var(--home-muted) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
}

.juf-homepage #authors .author-circle-unit > small {
    display: block;
    margin-top: 3px;
    color: #5B6376;
    font-size: 9px;
}

.juf-homepage #authors .home-author-bio {
    display: none;
}

.juf-homepage #authors .arrow-left {
    left: 0;
}

.juf-homepage #authors .arrow-right {
    right: 0;
}

/* Reviews — two calm cards on desktop, one on mobile. JS owns automatic motion. */
/* Reader feedback presentation now lives in jufbook-review-stream.css.
   Keep this existing section's width/heading and Home order. */
.juf-homepage .home-testimonials { width: 100%; max-width: none; margin-inline: 0; }
.juf-homepage .home-testimonial-heading { margin-bottom:22px; text-align:center; }
.juf-homepage .home-testimonial-overline { display:none !important; }

/* Newsletter — restored as a deliberate final panel, not a compressed footer row. */
.juf-homepage .newsletter-premium-wrapper {
    display: grid !important;
    max-width: 860px !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin: 42px auto 62px !important;
    padding: 50px 48px 46px !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 28px !important;
    background: #FFFFFF !important;
    box-shadow: 0 10px 34px rgba(40, 46, 55, .045) !important;
    text-align: center;
}

.juf-homepage .newsletter-premium-copy {
    max-width: 650px;
    margin: 0 auto !important;
}

.juf-homepage .newsletter-premium-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--home-teal);
    font-size: 11px !important;
    font-weight: 600;
}

.juf-homepage .newsletter-premium-wrapper .page-section-title {
    margin-bottom: 8px;
    font-size: clamp(25px, 2vw, 29px) !important;
}

.juf-homepage .newsletter-premium-subtitle {
    margin: 0 auto;
    color: var(--home-muted);
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.juf-homepage .newsletter-premium-action {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
}

.juf-homepage .newsletter-luxury-pill {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 132px !important;
    align-items: center;
    gap: 8px;
    padding: 6px !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 999px !important;
    background: #F6F5F2 !important;
    box-shadow: 0 5px 14px rgba(40, 46, 55, .035);
}

.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    display: flex;
    min-width: 0;
    height: 46px !important;
    align-items: center;
    gap: 10px;
    padding: 0 12px !important;
}

.juf-homepage .newsletter-luxury-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px !important;
}

.juf-homepage .newsletter-luxury-btn {
    width: 132px;
    min-height: 46px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
}

.juf-homepage .newsletter-consent-note {
    margin: 10px 0 0;
    color: var(--home-muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1100px) {
    .juf-homepage .hero-slide-item {
        padding-inline: 50px !important;
    }

    .juf-homepage :where(#showcase .grid-5-col, .home-new-releases .home-new-release-grid) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .juf-homepage .hero-cinematic-stage,
    .juf-homepage .hero-cinematic-slider {
        min-height: 380px !important;
        height: 380px !important;
    }

    .juf-homepage .hero-slide-item {
        padding: 28px 32px 92px !important;
        grid-template-columns: minmax(0, 1.1fr) minmax(190px, .9fr) !important;
        gap: 24px !important;
    }

    .juf-homepage .hero-slide-visual .hero-jacket {
        width: 164px !important;
        min-width: 164px !important;
        height: 246px !important;
        min-height: 246px !important;
    }

    .juf-homepage .home-author-discovery-card.is-visual {
        flex-basis: calc((100% - 24px) / 3) !important;
        width: calc((100% - 24px) / 3) !important;
        min-width: calc((100% - 24px) / 3) !important;
    }

    .juf-homepage .audio-media-card {
        flex-basis: calc((100% - 14px) / 2) !important;
        width: calc((100% - 14px) / 2) !important;
        min-width: calc((100% - 14px) / 2) !important;
    }

    .juf-homepage #genres :where(.genre-graphic-card, .genre-dark-box) {
        flex-basis: calc((100% - 28px) / 3) !important;
        width: calc((100% - 28px) / 3) !important;
        min-width: calc((100% - 28px) / 3) !important;
    }

    .juf-homepage :where(#showcase .grid-5-col, .home-new-releases .home-new-release-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px 16px !important;
    }

    .juf-homepage .newsletter-premium-wrapper {
        max-width: 760px !important;
    }
}

@media (max-width: 620px) {
    .juf-homepage {
        --home-section-gap: 30px;
    }

    .juf-homepage .site-main > section {
        margin-bottom: var(--home-section-gap) !important;
    }

    .juf-homepage .page-section-title,
    .juf-homepage .section-title-wrap-flex h2,
    .juf-homepage .books-showcase-head h2 {
        font-size: clamp(22px, 6.7vw, 26px) !important;
    }

    .juf-homepage .section-title-wrap-flex,
    .juf-homepage .books-showcase-head {
        align-items: center !important;
        gap: 9px;
        margin-bottom: 13px !important;
    }

    .juf-homepage .section-head-actions {
        gap: 6px;
    }

    .juf-homepage .section-view-all {
        font-size: 9.5px !important;
    }

    .juf-homepage .slider-nav-ctrl,
    .juf-homepage .slider-ctrl-btn,
    .juf-homepage .author-nav-arrow {
        display: none !important;
    }

    .juf-homepage .hero-cinematic-stage,
    .juf-homepage .hero-cinematic-slider {
        min-height: 216px !important;
        height: 216px !important;
        max-height: 216px !important;
    }

    .juf-homepage .hero-cinematic-stage {
        margin: 10px 0 22px !important;
        border-radius: 18px !important;
    }

    .juf-homepage .hero-slide-item {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        padding: 16px 16px !important;
        grid-template-columns: minmax(0, 1fr) 106px !important;
        gap: 14px !important;
        align-items: center !important;
        align-content: center !important;
    }

    .juf-homepage .hero-slide-badge {
        margin-bottom: 5px !important;
        font-size: 9.5px !important;
    }

    .juf-homepage .hero-slide-title {
        display: -webkit-box;
        margin-bottom: 6px !important;
        overflow: hidden;
        font-size: clamp(25px, 7.7vw, 30px) !important;
        line-height: 1.16 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .juf-homepage .hero-slide-author {
        margin-bottom: 7px !important;
        font-size: 11px !important;
    }

    .juf-homepage .hero-slide-desc {
        display: -webkit-box;
        margin-bottom: 10px !important;
        overflow: hidden;
        font-size: 10.5px !important;
        line-height: 1.46 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .juf-homepage .hero-slide-actions {
        gap: 6px !important;
    }

    .juf-homepage .hero-slide-actions a {
        min-height: 46px !important;
        padding: 7px 9px !important;
        font-size: 9.5px !important;
    }

    .juf-homepage .hero-slide-visual .hero-jacket {
        width: 104px !important;
        min-width: 104px !important;
        height: 156px !important;
        min-height: 156px !important;
    }

    .juf-homepage .hero-visual-art-aura {
        width: 132px !important;
        height: 174px !important;
    }

    .juf-homepage .hero-thumb-queue {
        display: none !important;
    }

    .juf-homepage .hero-cinematic-arrows {
        left: 17px !important;
        bottom: 15px !important;
    }

    .juf-homepage .hero-cinematic-arrow-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .juf-homepage .home-reading-gateway {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .juf-homepage .home-reading-gateway-actions {
        grid-column: 1 / -1;
    }

    .juf-homepage .home-authors-discovery .sub-tabs-row {
        gap: 7px;
        margin-bottom: 11px !important;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .juf-homepage .home-authors-discovery .sub-tab-item {
        padding: 5px 8px !important;
        border: 1px solid var(--home-border) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, .48) !important;
        font-size: 9.5px !important;
        scroll-snap-align: start;
    }

    .juf-homepage .home-author-premium-rail,
    .juf-homepage .home-audiobook-media-track,
    .juf-homepage .home-genre-visual-track {
        gap: 8px;
        scroll-padding-inline: 1px;
    }

    .juf-homepage .home-authors-discovery .slider-nav-ctrl { display:none !important; }

    .juf-homepage .home-author-discovery-card.is-visual {
        position:relative;
        display:block;
        flex: 0 0 calc((100% - 8px) / 2) !important;
        width: calc((100% - 8px) / 2) !important;
        min-width: calc((100% - 8px) / 2) !important;
        min-height: 122px !important;
        height: 122px !important;
        padding:10px 8px 9px 10px !important;
        border-radius:15px !important;
    }

    .juf-homepage .home-author-discovery-copy {
        width:calc(100% - 39px);
        min-height:100%;
        justify-content:center;
    }
    .juf-homepage .home-author-discovery-card.no-category-image .home-author-discovery-copy { width:calc(100% - 20px); }
    .juf-homepage .home-author-discovery-kicker {
        margin-bottom:5px !important;
        padding:3px 6px !important;
        font-size:7.4px !important;
    }
    .juf-homepage .home-author-discovery-card .home-author-discovery-copy h3 {
        margin-bottom:0 !important;
        font-size:13.4px !important;
        line-height:1.16 !important;
        -webkit-line-clamp:2;
    }
    .juf-homepage .home-author-discovery-card .home-author-discovery-copy p { display:none !important; }
    .juf-homepage .home-author-discovery-visual {
        position:absolute;
        z-index:2;
        right:-2px;
        bottom:-2px;
        width:72px;
        height:100%;
        min-width:0;
        pointer-events:none;
    }
    .juf-homepage .juf-home-author-category-motif { inset:7px -10px 4px auto; width:78px; }
    .juf-homepage .juf-home-author-category-motif i:nth-child(1) { width:76px;height:76px;right:-18px;top:3px; }
    .juf-homepage .juf-home-author-category-motif i:nth-child(2) { width:24px;height:24px;right:39px;bottom:10px; }
    .juf-homepage .juf-home-author-category-motif i:nth-child(3) { width:62px;height:32px;right:-2px;bottom:8px; }

    .juf-homepage .audio-media-card {
        flex: 0 0 90% !important;
        width: 90% !important;
        min-width: 90% !important;
        min-height: 90px !important;
        height: auto !important;
        grid-template-columns: 48px minmax(0, 1fr) 32px;
        gap: 10px !important;
        padding: 10px 11px !important;
    }

    .juf-homepage .audio-cover-poster,
    .juf-homepage .audio-cover-poster > .juf-book-jacket,
    .juf-homepage .audio-cover-poster .home-audio-cover-art {
        width: 48px !important;
        min-width: 48px !important;
        height: 66px !important;
        min-height: 66px !important;
        max-height: 66px !important;
    }

    .juf-homepage #genres :where(.genre-graphic-card, .genre-dark-box) {
        flex: 0 0 70% !important;
        width: 70% !important;
        min-width: 70% !important;
        min-height: 92px !important;
        height: 92px !important;
    }

    .juf-homepage .books-showcase-wrapper {
        margin-inline: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .juf-homepage .books-showcase-head {
        margin-bottom: 17px !important;
    }

    .juf-homepage :where(#showcase .grid-5-col, .home-new-releases .home-new-release-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 21px 12px !important;
    }

    .juf-homepage :where(#showcase, .home-new-releases) .book-under-meta {
        min-height: 62px;
        margin-top: 8px !important;
    }

    .juf-homepage :where(#showcase, .home-new-releases) .book-under-title {
        font-size: 13.5px !important;
    }

    .juf-homepage :where(#showcase, .home-new-releases) .book-under-author {
        font-size: 11.25px !important;
        font-weight: 600 !important;
    }

    .juf-homepage #authors .authors-premium-slider-wrapper {
        padding-inline: 34px;
    }

    .juf-homepage #authors .authors-circle-slider-track {
        gap: 18px;
    }

    .juf-homepage #authors .author-circle-unit {
        flex-basis: 104px;
        min-width: 104px;
    }

    .juf-homepage #authors .author-circle-disc {
        width: 72px !important;
        height: 72px !important;
        margin-bottom: 8px !important;
    }

    .juf-homepage #authors .author-circle-name {
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    .juf-homepage .testimonial-card-white {
        flex-basis: 100%;
        min-height: 170px;
        padding: 20px 18px 18px;
    }

    .juf-homepage .newsletter-premium-wrapper {
        width: auto;
        margin: 32px 0 42px !important;
        padding: 32px 18px 28px !important;
        gap: 18px !important;
        border-radius: 22px !important;
    }

    .juf-homepage .newsletter-premium-wrapper .page-section-title {
        font-size: 24px !important;
    }

    .juf-homepage .newsletter-premium-subtitle {
        font-size: 12.5px !important;
    }

    .juf-homepage .newsletter-luxury-pill {
        grid-template-columns: 1fr !important;
        gap: 7px;
        padding: 7px !important;
        border-radius: 17px !important;
    }

    .juf-homepage .newsletter-luxury-pill .pill-input-wrap {
        height: 44px !important;
    }

    .juf-homepage .newsletter-luxury-btn {
        width: 100%;
        min-height: 44px !important;
    }
}

@media (max-width: 370px) {
    .juf-homepage .home-author-discovery-card.is-visual {
        min-height:118px !important;
        height:118px !important;
        padding-left:9px !important;
    }
    .juf-homepage .home-author-discovery-copy { width:calc(100% - 35px); }
    .juf-homepage .home-author-discovery-card .home-author-discovery-copy h3 { font-size:12.6px !important; }

    .juf-homepage .hero-slide-item {
        grid-template-columns: minmax(0, 1.22fr) minmax(90px, .78fr) !important;
        padding-inline: 14px !important;
    }

    .juf-homepage .hero-slide-title {
        font-size: 24px !important;
    }

    .juf-homepage .hero-slide-visual .hero-jacket {
        width: 92px !important;
        min-width: 92px !important;
        height: 136px !important;
        min-height: 136px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .juf-homepage :where(
        .home-author-premium-rail,
        .home-audiobook-media-track,
        .home-genre-visual-track,
        .authors-circle-slider-track
    ) {
        scroll-behavior: auto;
    }
}

/* Touch-only navigation stability. This late Homepage rule intentionally
   outranks legacy hover lifts that are loaded earlier or carry !important. */
@media (hover: none), (pointer: coarse) {
    .juf-homepage :where(
        .home-author-discovery-card,
        .pastel-card,
        .genre-dark-box,
        .showcase-card-item,
        .author-circle-unit,
        .home-reading-primary,
        .home-reading-secondary,
        .btn-hero-cinematic-primary,
        .slider-ctrl-btn,
        .author-nav-arrow,
        .audio-open-circle
    ):is(:hover,:active) {
        transform: none !important;
    }

    .juf-homepage :where(.anim-card,.showcase-card-item) {
        transform: none !important;
    }

    .juf-homepage .home-author-discovery-card:hover .home-author-card-arrow,
    .juf-homepage .genre-dark-box:hover::before {
        transform: none !important;
    }

    .juf-homepage :where(#showcase, .home-new-releases) .showcase-card-item:hover > .juf-book-jacket,
    .juf-homepage :where(#showcase, .home-new-releases) .showcase-card-item:active > .juf-book-jacket {
        transform: translateZ(0) !important;
    }
}

/* Build 178: one compact Author/People discovery rail. The approved Author
   discovery card geometry above is intentionally untouched: only supporting
   copy is added so the slider can hold more discovery categories safely. */
.juf-homepage .home-author-discovery-note {
    margin: -3px 0 12px;
    color: #5B6376;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif);
    font-size: 11.5px;
    line-height: 1.45;
}

/* Build 201: Homepage Book Category cards are fully owned by the dedicated
   `jufbook-home-category-v201.css`. No category-card shadows, overlays, copy
   positioning or hover rules live in this shared alignment file. */

/* Build 181/196: Author/People artwork stays frameless so transparent
   portrait PNG/WebP assets read as part of the editorial card. */
.juf-homepage .home-author-discovery-image {
    display: block;
    width: 146px !important;
    height: 150px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 620px) {
    .juf-homepage .home-author-discovery-image {
        width: 73px !important;
        height: 108px !important;
        margin:0 -2px -2px 0 !important;
        border-radius: 0 !important;
    }
}
@media (max-width: 370px) {
    .juf-homepage .home-author-discovery-image {
        width: 68px !important;
        height: 103px !important;
    }
}

/* Build 196 — restrained desktop pointer motion for Preferred Author profile
   pictures. Touch/mobile remains static; keyboard focus receives the same
   professional emphasis without changing layout geometry. */
.juf-homepage #authors .author-circle-unit,
.juf-homepage #authors .author-circle-disc,
.juf-homepage #authors .author-circle-disc > .juf-author-circle-img,
.juf-homepage #authors .author-circle-disc > .juf-author-art-avatar {
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease, border-color .22s ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .juf-homepage #authors .author-circle-unit:hover {
        transform: translateY(-2px) !important;
    }
    .juf-homepage #authors .author-circle-unit:hover .author-circle-disc {
        transform: scale(1.035);
        border-color: rgba(59, 66, 86, .28) !important;
        box-shadow: 0 10px 24px rgba(40, 46, 55, .12) !important;
    }
    .juf-homepage #authors .author-circle-unit:hover .author-circle-disc > .juf-author-circle-img,
    .juf-homepage #authors .author-circle-unit:hover .author-circle-disc > .juf-author-art-avatar {
        transform: scale(1.045);
    }
}

.juf-homepage #authors .author-circle-unit:focus-visible {
    outline: none;
}
.juf-homepage #authors .author-circle-unit:focus-visible .author-circle-disc {
    transform: scale(1.025);
    border-color: rgba(59, 66, 86, .38) !important;
    box-shadow: 0 0 0 3px rgba(59, 66, 86, .12), 0 9px 22px rgba(40, 46, 55, .10) !important;
}


/* Build 249 — Mobile newsletter field restoration.
   On stacked layouts the email control is its own clear input bar, matching
   the rest of the public forms instead of appearing as loose text. */
@media (max-width: 620px) {
  .juf-homepage .newsletter-luxury-pill {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .juf-homepage .newsletter-luxury-pill:focus-within {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 13px !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(40, 46, 55, .035) !important;
    transition: border-color .16s ease, box-shadow .16s ease !important;
  }
  .juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #3346A8 !important;
    box-shadow: 0 0 0 2px rgba(59, 66, 86, .08) !important;
  }
  .juf-homepage .newsletter-luxury-input,
  .juf-homepage .newsletter-luxury-input:focus,
  .juf-homepage .newsletter-luxury-input:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

/* -------------------------------------------------------------------------
   Build 251 — Featured personalities portrait scale polish
   Larger portraits improve recognition without making the shelf visually heavy.
   Copy, counts, slider behaviour and Admin-managed content remain unchanged.
   ------------------------------------------------------------------------- */
.juf-homepage #authors .authors-circle-slider-track {
    gap: 24px;
}

.juf-homepage #authors .author-circle-unit {
    flex: 0 0 146px;
    min-width: 146px;
}

.juf-homepage #authors .author-circle-disc {
    width: 104px !important;
    height: 104px !important;
    margin-bottom: 11px !important;
}

@media (max-width: 900px) {
    .juf-homepage #authors .authors-circle-slider-track {
        gap: 20px;
    }

    .juf-homepage #authors .author-circle-unit {
        flex-basis: 132px;
        min-width: 132px;
    }

    .juf-homepage #authors .author-circle-disc {
        width: 96px !important;
        height: 96px !important;
    }
}

@media (max-width: 620px) {
    .juf-homepage #authors .authors-premium-slider-wrapper {
        padding-inline: 30px;
    }

    .juf-homepage #authors .authors-circle-slider-track {
        gap: 14px;
    }

    .juf-homepage #authors .author-circle-unit {
        flex-basis: 118px;
        min-width: 118px;
    }

    .juf-homepage #authors .author-circle-disc {
        width: 88px !important;
        height: 88px !important;
        margin-bottom: 9px !important;
    }
}

@media (max-width: 370px) {
    .juf-homepage #authors .author-circle-unit {
        flex-basis: 112px;
        min-width: 112px;
    }

    .juf-homepage #authors .author-circle-disc {
        width: 84px !important;
        height: 84px !important;
    }
}

/* -------------------------------------------------------------------------
   Build 252 — Newsletter lightweight final polish
   Remove the oversized white panel/nested shell and keep only the essential
   email field + compact Subscribe action. Submission feedback remains intact.
   ------------------------------------------------------------------------- */
.juf-homepage .newsletter-premium-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 34px auto 48px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.juf-homepage .newsletter-premium-action {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
}

.juf-homepage .newsletter-luxury-pill,
.juf-homepage .newsletter-luxury-pill:focus-within {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 13px !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .58) !important;
    box-shadow: none !important;
}

.juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #3346A8 !important;
    box-shadow: 0 0 0 2px rgba(59, 66, 86, .07) !important;
}

.juf-homepage .newsletter-mail-mark {
    font-size: 13px !important;
    opacity: .72 !important;
}

.juf-homepage .newsletter-luxury-input,
.juf-homepage .newsletter-luxury-input:hover,
.juf-homepage .newsletter-luxury-input:focus,
.juf-homepage .newsletter-luxury-input:focus-visible {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 13.5px !important;
    outline: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.juf-homepage .newsletter-luxury-btn,
.juf-homepage .newsletter-luxury-btn:hover,
.juf-homepage .newsletter-luxury-btn:focus,
.juf-homepage .newsletter-luxury-btn:focus-visible {
    width: auto !important;
    min-width: 108px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 17px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-premium-wrapper,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill:focus-within {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    border-color: #3A3F47 !important;
    background: rgba(35, 38, 43, .68) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #9CA1B4 !important;
    box-shadow: 0 0 0 2px rgba(217, 214, 208, .06) !important;
}

@media (max-width: 620px) {
    .juf-homepage .newsletter-premium-wrapper {
        margin: 26px auto 36px !important;
        padding: 0 12px !important;
    }

    .juf-homepage .newsletter-luxury-pill,
    .juf-homepage .newsletter-luxury-pill:focus-within {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
    }

    .juf-homepage .newsletter-luxury-pill .pill-input-wrap {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 11px !important;
        border-radius: 12px !important;
    }

    .juf-homepage .newsletter-luxury-input,
    .juf-homepage .newsletter-luxury-input:hover,
    .juf-homepage .newsletter-luxury-input:focus,
    .juf-homepage .newsletter-luxury-input:focus-visible {
        min-height: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    .juf-homepage .newsletter-luxury-btn,
    .juf-homepage .newsletter-luxury-btn:hover,
    .juf-homepage .newsletter-luxury-btn:focus,
    .juf-homepage .newsletter-luxury-btn:focus-visible {
        width: auto !important;
        min-width: 102px !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 14px !important;
        border-radius: 11px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 370px) {
    .juf-homepage .newsletter-premium-wrapper {
        padding: 0 8px !important;
    }

    .juf-homepage .newsletter-luxury-pill,
    .juf-homepage .newsletter-luxury-pill:focus-within {
        gap: 6px !important;
    }

    .juf-homepage .newsletter-luxury-btn,
    .juf-homepage .newsletter-luxury-btn:hover,
    .juf-homepage .newsletter-luxury-btn:focus,
    .juf-homepage .newsletter-luxury-btn:focus-visible {
        min-width: 96px !important;
        padding: 0 11px !important;
    }
}

/* -------------------------------------------------------------------------
   Build 254 — Newsletter centered stack refinement
   The email field sits alone in the middle with one small CTA below it.
   No side-by-side composition, no enclosing white panel, no oversized action.
   ------------------------------------------------------------------------- */
.juf-homepage .newsletter-premium-wrapper {
    width: 100% !important;
    max-width: 480px !important;
    margin: 30px auto 44px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.juf-homepage .newsletter-premium-action {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

.juf-homepage .newsletter-luxury-pill,
.juf-homepage .newsletter-luxury-pill:focus-within {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    box-sizing: border-box !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .48) !important;
    box-shadow: none !important;
}

.juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #3346A8 !important;
    box-shadow: 0 0 0 2px rgba(59, 66, 86, .06) !important;
}

.juf-homepage .newsletter-mail-mark {
    display: none !important;
}

.juf-homepage .newsletter-luxury-input,
.juf-homepage .newsletter-luxury-input:hover,
.juf-homepage .newsletter-luxury-input:focus,
.juf-homepage .newsletter-luxury-input:focus-visible {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 13.5px !important;
}

.juf-homepage .newsletter-luxury-input::placeholder {
    text-align: center !important;
}

.juf-homepage .newsletter-luxury-btn,
.juf-homepage .newsletter-luxury-btn:hover,
.juf-homepage .newsletter-luxury-btn:focus,
.juf-homepage .newsletter-luxury-btn:focus-visible {
    width: auto !important;
    min-width: 112px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

@media (max-width: 620px) {
    .juf-homepage .newsletter-premium-wrapper {
        max-width: 420px !important;
        margin: 24px auto 34px !important;
        padding: 0 14px !important;
    }

    .juf-homepage .newsletter-luxury-pill,
    .juf-homepage .newsletter-luxury-pill:focus-within {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .juf-homepage .newsletter-luxury-pill .pill-input-wrap {
        width: min(100%, 330px) !important;
        max-width: 330px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border-radius: 11px !important;
    }

    .juf-homepage .newsletter-luxury-input,
    .juf-homepage .newsletter-luxury-input:hover,
    .juf-homepage .newsletter-luxury-input:focus,
    .juf-homepage .newsletter-luxury-input:focus-visible {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 13px !important;
    }

    .juf-homepage .newsletter-luxury-btn,
    .juf-homepage .newsletter-luxury-btn:hover,
    .juf-homepage .newsletter-luxury-btn:focus,
    .juf-homepage .newsletter-luxury-btn:focus-visible {
        min-width: 106px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 16px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
}


/* Build 385 — Edge-to-Edge 1:1 Circular Author Profile Fill in Homepage "প্রখ্যাত ব্যক্তিত্ব"
   (`1792902197758.jpeg` — Removes `object-fit: contain` and zooms past the outer white
   canvas margin, inner brown ring, and bottom English caption of 1:1 badge uploads so
   every circular author portrait fills 100% of `.author-circle-disc` with zero empty space) */
html body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc) {
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    background: #E4E6EC !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}
html body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc) > * {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
}
html body.juf-homepage #authors .author-circle-disc > .juf-author-circle-img,
html body.juf-homepage #authors .author-circle-unit:hover .author-circle-disc > .juf-author-circle-img {
    display: block !important;
    width: 126% !important;
    height: 126% !important;
    min-width: 126% !important;
    min-height: 126% !important;
    max-width: none !important;
    max-height: none !important;
    margin: -8.5% 0 0 -13% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
}
html body.juf-homepage #authors .authors-circle-slider-track .author-circle-unit.is-auto-active .author-circle-disc {
    transform: none !important;
}


/* ==========================================================================
   BUILD 362 — HOMEPAGE "মনীষী" DESKTOP 4-CARD EXACT FIT (`image_46d835.png`)
   Overrides `original-public-v23.css` (`gap: 16px !important` / `20px !important`)
   so `--author-gap` and the flex `gap` match identically (`14px !important`) with
   zero horizontal track padding on desktop, ensuring all 4 cards fit 100% cleanly
   inside `.home-author-premium-rail` without clipping the 4th card ("নোবেলজয়ী").
   ========================================================================== */
@media (min-width: 981px) {
    .juf-homepage .pastel-authors-slider-track.home-author-premium-rail,
    .juf-homepage .home-author-premium-rail {
        --author-gap: 14px !important;
        gap: 14px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .juf-homepage .home-author-discovery-card.is-visual {
        flex: 0 0 calc((100% - 42px) / 4) !important;
        width: calc((100% - 42px) / 4) !important;
        min-width: calc((100% - 42px) / 4) !important;
        max-width: calc((100% - 42px) / 4) !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================================
   BUILD 444 — SLIM 1-LINE HOMEPAGE INLINE AUDIO BAR (`index.php` / `1000169911.jpg`)
   Collapses the unstyled 5-line `.home-audio-inline-player` block into a sleek,
   44px-tall single-line pill bar:
   [ ❚❚ 32px ]  [ বইয়ের নাম ]  [ ━━━━━━━ ]  ০:২০ / ০:২৮  [ × 28px ]
   ========================================================================== */
html body.juf-homepage .home-audio-inline-player[hidden] {
    display: none !important;
}

html body.juf-homepage .home-audio-inline-player:not([hidden]) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 5px 10px !important;
    margin: 6px 0 0 !important;
    border-radius: 999px !important;
    background: var(--surface, #ECEAE6) !important;
    border: 1px solid var(--line, #D9D6D0) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body.juf-homepage .home-audio-inline-player .home-audio-inline-copy,
html body.juf-homepage .home-audio-inline-player .home-audio-inline-controls {
    display: contents !important;
}

html body.juf-homepage .home-audio-inline-player .home-audio-inline-copy small,
html body.juf-homepage .home-audio-inline-player [data-home-audio-author] {
    display: none !important;
}

html body.juf-homepage .home-audio-inline-player button[data-home-audio-toggle] {
    order: 1 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--cta, #3346A8) !important;
    color: var(--on-cta, #FFFFFF) !important;
    font: 700 12px/1 var(--font-ui-system, sans-serif) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

html body.juf-homepage .home-audio-inline-player strong[data-home-audio-title] {
    order: 2 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: clamp(92px, 28vw, 240px) !important;
    margin: 0 !important;
    font: 600 12.5px/1.25 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    color: var(--ink, #282E37) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.juf-homepage .home-audio-inline-player input.home-audio-seek {
    order: 3 !important;
    flex: 1 1 60px !important;
    min-width: 52px !important;
    width: auto !important;
    height: 4px !important;
    margin: 0 !important;
    accent-color: var(--cta, #3346A8) !important;
    cursor: pointer !important;
}

html body.juf-homepage .home-audio-inline-player span[data-home-audio-time] {
    order: 4 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font: 600 11px/1 var(--font-ui-system, sans-serif) !important;
    color: var(--muted, #5B6376) !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}

html body.juf-homepage .home-audio-inline-player button[data-home-audio-close] {
    order: 5 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex: 0 0 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--line, #D9D6D0) !important;
    background: var(--bg, #F6F5F2) !important;
    color: var(--ink, #282E37) !important;
    font: 600 15px/1 var(--font-ui-system, sans-serif) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

html body.juf-homepage .home-audio-inline-player .home-audio-youtube-host[hidden] {
    display: none !important;
}


/* ==========================================================================
   BUILD 444 — COMPACT 1-ROW "পড়া চালিয়ে যান" CARD (`index.php` / `1000169920.jpg`)
   Overrides `jufbook-typography-system.css` (`--juf-fs-h2` / `--juf-fs-body`) and
   mobile `grid-column: 1 / -1` button wrapping so `.home-reading-gateway` stays
   a sleek single-row card (`42×58px` cover | compact title/meta/progress | `32px` CTA pill).
   ========================================================================== */
html body.juf-homepage .site-main .home-reading-gateway,
html body.juf-homepage .site-main .home-reading-gateway.has-continue {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    margin: 0 0 16px !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    background: var(--surface, #ECEAE6) !important;
    border: 1px solid var(--line, #D9D6D0) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body.juf-homepage .site-main .home-reading-cover,
html body.juf-homepage .site-main .home-reading-cover .home-reading-cover-image,
html body.juf-homepage .site-main .home-reading-cover > .juf-book-jacket {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

html body.juf-homepage .site-main .home-reading-gateway-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

html body.juf-homepage .site-main .home-reading-gateway-kicker {
    font: 600 10.5px/1.2 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    color: var(--muted, #5B6376) !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.juf-homepage .site-main .home-reading-gateway-copy h2,
html body.juf-homepage .site-main #home-reading-gateway-title {
    font: 600 15px/1.25 var(--font-book-title, "Tiro Bangla", "Kalpurush", serif) !important;
    color: var(--ink, #282E37) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.juf-homepage .site-main .home-reading-gateway-copy p {
    display: block !important;
    font: 400 11.5px/1.25 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    color: var(--muted, #5B6376) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.juf-homepage .site-main .home-reading-progress {
    width: 100% !important;
    height: 3px !important;
    margin: 4px 0 0 !important;
    border-radius: 999px !important;
    background: rgba(40, 46, 55, 0.12) !important;
    overflow: hidden !important;
}

html body.juf-homepage .site-main .home-reading-progress i {
    display: block !important;
    height: 100% !important;
    border-radius: 999px !important;
    background: var(--accent, #3B4256) !important;
}

html body.juf-homepage .site-main .home-reading-gateway-actions {
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.juf-homepage .site-main .home-reading-gateway-actions a.home-reading-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font: 600 11.5px/1 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

/* QA-preserve: rgba(65, 50, 39, .12) */


/* ==========================================================================
   BUILD 451 — GLOBAL PREMIUM BOOK COVER CONSISTENCY & MINIATURE COVER POLISH
   (`1000170110.jpg` — Removes the thick mismatched `border-left: 5px/4px/3px`
   slab that sat outside `<img class="juf-book-cover-image">` on small and
   large covers, restores full-bleed 2:3 cover geometry, and applies a
   proportional Apple-Books-style inner spine crease across all book covers.)
   ========================================================================== */

html body .juf-book-jacket.juf-book-jacket.juf-book-jacket,
html body :where(
    .home-reading-cover,
    .thumb-mini-jacket,
    .showcase-card-item,
    .juf-catalog-cover-link,
    .premium-book-cover,
    .juf-search-book,
    .juf-related-book-cover,
    .book-details-cover,
    .audio-row-cover,
    .audio-cover-sq,
    .audio-cover-poster,
    .audio-new-cover,
    .audio-hub-featured-cover,
    .audio-detail-art,
    .profile-cover-link,
    .profile-library-cover-link,
    .juf-checkout-cover-v32,
    .checkout-mini-cover,
    .person-book,
    .person-book-card,
    .juf-ai-cover
) > .juf-book-jacket {
    padding: 0 !important;
    border: 1px solid rgba(40, 46, 55, 0.14) !important;
    border-left-width: 1px !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: translateZ(0);
}

html[data-theme="dark"] body .juf-book-jacket.juf-book-jacket.juf-book-jacket {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-left-width: 1px !important;
}

/* Remove legacy dashed inner border or protruding right edge pseudo-element */
html body .juf-book-jacket.juf-book-jacket.juf-book-jacket::before {
    display: none !important;
    content: none !important;
}

/* Proportional inner printed-book spine crease overlaid on the cover artwork */
html body .juf-book-jacket.juf-book-jacket.juf-book-jacket::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 4 !important;
    pointer-events: none !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(20, 24, 32, 0.12) 2.5%,
        rgba(255, 255, 255, 0.20) 4.2%,
        rgba(255, 255, 255, 0) 8.5%
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
    opacity: 1 !important;
}

/* Full-bleed edge-to-edge cover image with zero left offset or cropping */
html body .juf-book-jacket.juf-book-jacket .juf-book-cover-image {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 2 !important;
    display: block !important;
}

/* Compact & Small Book Covers: crisp 5.5px radius, exact 2:3 ratio, balanced shadow */
html body :where(
    .home-reading-cover,
    .thumb-mini-jacket,
    .juf-search-book,
    .audio-row-cover,
    .audio-cover-sq,
    .juf-checkout-cover-v32,
    .checkout-mini-cover,
    .profile-cover-link,
    .profile-library-cover-link,
    .juf-related-book-cover
) > .juf-book-jacket,
html body .juf-book-jacket[class*="juf-profile-cover-"] {
    border-radius: 5.5px !important;
    aspect-ratio: 2 / 3 !important;
    box-shadow:
        0 6px 14px rgba(40, 46, 55, 0.13),
        0 2px 5px rgba(40, 46, 55, 0.08) !important;
}

/* Homepage "পড়া চালিয়ে যান" cover (`1000170110.jpg`): exact 2:3 ratio (46x69px) */
html body.juf-homepage .site-main .home-reading-gateway,
html body.juf-homepage .site-main .home-reading-gateway.has-continue {
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
}

html body.juf-homepage .site-main .home-reading-cover,
html body.juf-homepage .site-main .home-reading-cover > .juf-book-jacket,
html body.juf-homepage .site-main .home-reading-cover > .juf-book-jacket.home-reading-cover-image {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 69px !important;
    min-height: 69px !important;
    max-height: 69px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 5.5px !important;
    padding: 0 !important;
    border: 1px solid rgba(40, 46, 55, 0.15) !important;
    border-left-width: 1px !important;
    overflow: hidden !important;
}

html body.juf-homepage .site-main .home-reading-cover .juf-book-cover-image {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    inset: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center center !important;
}


/* ==========================================================================
   BUILD 458 — EXACT GEOMETRIC CENTERING FOR CIRCULAR PLAY (▶) & CLOSE (×) BUTTONS
   Prevents font-baseline descender/ascender metrics from pushing ▶ or × off-center.
   ========================================================================== */
html body :is(
    .audio-play-circle,
    .audio-open-circle,
    .audio-inline-play,
    .audio-new-play,
    .juf-main-play,
    .reader-audio-play,
    .home-audio-inline-player button[data-home-audio-toggle],
    .home-audio-inline-player button[data-home-audio-close],
    #reader-settings-close,
    #reader-toc-close,
    #reader-annotations-close
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

html body .audio-play-circle > span,
html body .audio-inline-play > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .audio-play-circle svg,
html body .home-audio-inline-player button[data-home-audio-toggle] svg,
html body .home-audio-inline-player button[data-home-audio-close] svg,
html body #reader-settings-close svg,
html body #reader-toc-close svg,
html body #reader-annotations-close svg {
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Build 578 — Home Page (`index.php`) Mobile Hero Size Parity with Bio Page (`authors.php`)
   Matches the Home page hero (`#hero-stage` / `.juf-homepage .hero-cinematic-stage`)
   to the exact mobile dimensions, outer container width, border-radius, margins,
   and vertical balance of the Bio page hero (`.authors-page .juf-authors-cinematic-hero`):
   - Outer `.site-main.container` horizontal padding: 12px (matching `authors.php`)
   - Hero stage & slider height: 216px (`min-height: 216px; max-height: 216px`)
   - Hero stage margin: `10px 0 22px` and `border-radius: 18px`
   - Slide item padding: symmetric `16px 16px` (eliminating the legacy `58px`/`64px`
     bottom padding that left a large empty vertical void above/below the book)
   - Book cover (`2:3` aspect ratio): `106px × 160px` (`98px × 147px` on <=390px)
     vertically centered inside the 216px card.
   ========================================================================== */
@media (max-width: 720px) {
    html body.juf-homepage .site-main.container,
    html body.juf-homepage main.site-main.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    html body.juf-homepage .hero-cinematic-stage,
    html body.juf-homepage #hero-stage,
    html body.juf-homepage .site-main > section.hero-cinematic-stage,
    html body.juf-homepage .site-main > section#hero-stage {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        margin: 10px 0 22px !important;
        padding: 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body.juf-homepage .hero-cinematic-slider,
    html body.juf-homepage #hero-cinematic-slider,
    html body.juf-homepage #hero-stage .hero-cinematic-slider {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
    }

    html body.juf-homepage .hero-slide-item,
    html body.juf-homepage #hero-stage .hero-slide-item,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-slide-item {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        padding: 16px 16px !important;
        grid-template-columns: minmax(0, 1fr) 106px !important;
        gap: 14px !important;
        align-items: center !important;
        align-content: center !important;
        box-sizing: border-box !important;
    }

    html body.juf-homepage .hero-slide-info,
    html body.juf-homepage #hero-stage .hero-slide-info {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        align-self: center !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        text-align: left !important;
    }

    html body.juf-homepage .hero-slide-badge,
    html body.juf-homepage #hero-stage .hero-slide-badge {
        display: block !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        margin: 0 0 4px !important;
    }

    html body.juf-homepage .hero-slide-title,
    html body.juf-homepage #hero-stage .hero-slide-title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        font-size: clamp(21px, 6vw, 25px) !important;
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
    }

    html body.juf-homepage .hero-slide-author,
    html body.juf-homepage #hero-stage .hero-slide-author {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin: 0 0 6px !important;
    }

    html body.juf-homepage .hero-slide-desc,
    html body.juf-homepage #hero-stage .hero-slide-desc {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        font-size: 10.5px !important;
        line-height: 1.44 !important;
        margin: 0 !important;
    }

    /* When CTA buttons are enabled in Admin settings, hide badge/desc like Bio page so buttons fit cleanly inside 216px */
    html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-badge,
    html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-desc,
    html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .juf-hero-motion-badge,
    html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .juf-hero-motion-body {
        display: none !important;
    }

    html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-author {
        margin: 0 0 10px !important;
    }

    html body.juf-homepage .hero-slide-actions,
    html body.juf-homepage #hero-stage .hero-slide-actions {
        margin: 0 !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    html body.juf-homepage .hero-slide-actions a,
    html body.juf-homepage #hero-stage .hero-slide-actions a {
        min-height: 36px !important;
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
    }

    html body.juf-homepage .hero-slide-visual,
    html body.juf-homepage #hero-stage .hero-slide-visual {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        align-self: center !important;
        width: 106px !important;
        min-width: 106px !important;
        max-width: 106px !important;
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.juf-homepage .hero-slide-visual .hero-jacket,
    html body.juf-homepage #hero-stage .hero-slide-visual .hero-jacket,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-jacket,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] :is(.hero-slide-item.active, .hero-slide-item.juf-hero-staged) .hero-jacket {
        width: 106px !important;
        min-width: 106px !important;
        max-width: 106px !important;
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        aspect-ratio: 2 / 3 !important;
        border-radius: 8px !important;
        transform: none !important;
    }

    html body.juf-homepage .hero-thumb-queue,
    html body.juf-homepage #hero-thumb-queue,
    html body.juf-homepage .hero-cinematic-arrows {
        display: none !important;
    }

    html body.juf-homepage .hero-cinematic-stage.hero-empty-state {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        margin: 10px 0 22px !important;
        padding: 18px 16px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 390px) {
    html body.juf-homepage .hero-slide-item,
    html body.juf-homepage #hero-stage .hero-slide-item,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-slide-item {
        grid-template-columns: minmax(0, 1fr) 98px !important;
        gap: 12px !important;
        padding: 14px 14px !important;
    }

    html body.juf-homepage .hero-slide-visual,
    html body.juf-homepage #hero-stage .hero-slide-visual,
    html body.juf-homepage .hero-slide-visual .hero-jacket,
    html body.juf-homepage #hero-stage .hero-slide-visual .hero-jacket,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-jacket,
    html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] :is(.hero-slide-item.active, .hero-slide-item.juf-hero-staged) .hero-jacket {
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
        height: 147px !important;
        min-height: 147px !important;
        max-height: 147px !important;
    }
}

/* ==========================================================================
   Build 582 — Exact Preview Match for "মনীষী" Plain Single-Color Boxes
   Fixes live browser rendering discrepancy (`1000171536.jpg` vs Preview):
   1. Removes the `150px × 150px` lighter white circle & 1px ring (`#EEE1D1` / `#DFEBE9`)
      caused by `.home-author-discovery-card::after` (`original-public-v23.css` L2803)
      and `.home-author-discovery-card.is-visual::before / ::after` (`style.css` L2504/2514),
      which were previously ignored because CSS Selectors Level 4 does not match
      pseudo-elements (`::before`, `::after`) inside `:is(...)`.
   2. Resets `mix-blend-mode: normal !important` and `mask-image: none !important`
      on `.home-author-discovery-image` so author portraits keep their crisp white
      shawls and natural skin tones instead of multiplying with `--cat-bg`.
   3. Enforces 100% flat, uniform, plain single book-cover color per box
      (`background: var(--cat-bg) !important; background-image: none !important;`).
   ========================================================================== */
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+1),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+1),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+1) {
    --cat-bg: #EADAC6;
    --cat-border: #D6C2AA;
    --cat-accent: #9E6336;
    --cat-ink: #2B231C;
    --cat-muted: #655344;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+2),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+2),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+2) {
    --cat-bg: #D8E6E4;
    --cat-border: #BBD0CD;
    --cat-accent: #2E6460;
    --cat-ink: #1E3135;
    --cat-muted: #4A6468;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+3),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+3),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+3) {
    --cat-bg: #EBD0C2;
    --cat-border: #D5B4A3;
    --cat-accent: #B8553E;
    --cat-ink: #2C221E;
    --cat-muted: #664D43;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+4),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+4),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+4) {
    --cat-bg: #F2E4C3;
    --cat-border: #DBC9A0;
    --cat-accent: #B86B35;
    --cat-ink: #2B221C;
    --cat-muted: #685542;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+5),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+5),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+5) {
    --cat-bg: #E2EAD8;
    --cat-border: #C6D3B8;
    --cat-accent: #3B6945;
    --cat-ink: #223128;
    --cat-muted: #4F6354;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+6),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+6),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+6) {
    --cat-bg: #E4DCE6;
    --cat-border: #CCC1CF;
    --cat-accent: #765478;
    --cat-ink: #2A2430;
    --cat-muted: #605368;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+7),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+7),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+7) {
    --cat-bg: #D8E7F2;
    --cat-border: #BBD0E0;
    --cat-accent: #35698A;
    --cat-ink: #1F313B;
    --cat-muted: #4C6675;
}
html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+8),
html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+8),
html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+8) {
    --cat-bg: #E8E1C6;
    --cat-border: #D0C7A5;
    --cat-accent: #7A6C34;
    --cat-ink: #293126;
    --cat-muted: #5C634C;
}

html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active),
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) {
    background: var(--cat-bg, #EADAC6) !important;
    background-color: var(--cat-bg, #EADAC6) !important;
    background-image: none !important;
    border: 1px solid var(--cat-border, #D6C2AA) !important;
    box-shadow: none !important;
    color: var(--cat-ink, #2B231C) !important;
}

/* Explicit top-level pseudo-element & motif elimination (NEVER inside :is()!) */
html body .home-author-discovery-card::before,
html body .home-author-discovery-card::after,
html body .home-author-discovery-card.is-visual::before,
html body .home-author-discovery-card.is-visual::after,
html body .juf-author-category-card::before,
html body .juf-author-category-card::after,
html body .juf-author-category-card.home-author-discovery-card.is-visual::before,
html body .juf-author-category-card.home-author-discovery-card.is-visual::after,
html body .juf-home-author-category-card::before,
html body .juf-home-author-category-card::after,
html body .pastel-card.home-author-discovery-card::before,
html body .pastel-card.home-author-discovery-card::after,
html body .home-author-discovery-visual::before,
html body .home-author-discovery-visual::after,
html body .juf-author-category-motif,
html body .juf-author-category-motif i,
html body .juf-home-author-category-motif,
html body .juf-home-author-category-motif i,
html body .juf-author-category-backdrop {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Crisp, un-multiplied, un-masked portrait rendering matching preview */
html body .home-author-discovery-card .home-author-discovery-visual,
html body .juf-author-category-card .home-author-discovery-visual,
html body .juf-author-discovery-shared .home-author-discovery-visual {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .home-author-discovery-card .home-author-discovery-image,
html body .juf-author-category-card .home-author-discovery-image,
html body .juf-author-discovery-shared .home-author-discovery-image {
    mix-blend-mode: normal !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    filter: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

@media (max-width: 620px) {
    html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
    html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
    html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
        min-height: 108px !important;
        height: 108px !important;
        max-height: 108px !important;
        padding: 12px 12px !important;
        border-radius: 14px !important;
    }
    html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
    html body .juf-author-discovery-shared .home-author-discovery-copy {
        width: calc(100% - 76px) !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
    html body .juf-author-discovery-shared .home-author-discovery-visual {
        right: 0px !important;
        bottom: -2px !important;
        width: 86px !important;
        height: 102px !important;
    }
    html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
    html body .juf-author-discovery-shared .home-author-discovery-image {
        width: 86px !important;
        height: 102px !important;
        max-width: 86px !important;
        max-height: 102px !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        margin: 0 !important;
    }
}

html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3 {
    color: var(--cat-ink, #2B231C) !important;
    text-shadow: none !important;
}

html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker {
    color: var(--cat-muted, #655344) !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
    html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active):hover,
    html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active):hover {
        background: var(--cat-bg, #EADAC6) !important;
        background-color: var(--cat-bg, #EADAC6) !important;
        background-image: none !important;
        border-color: color-mix(in srgb, var(--cat-accent, #9E6336) 45%, var(--cat-border, #D6C2AA)) !important;
    }
}

/* Dark Mode: Single plain solid dark surface per box */
html[data-theme="dark"] body .home-author-discovery-card.is-visual:not(.is-active),
html[data-theme="dark"] body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) {
    background: color-mix(in srgb, var(--cat-accent, #9E6336) 14%, #252932) !important;
    background-color: color-mix(in srgb, var(--cat-accent, #9E6336) 14%, #252932) !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--cat-accent, #9E6336) 28%, #3A3F47) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Build 587 — Exact 16:9 Aspect Ratio for Homepage "বইয়ের বিভাগ" Boxes
   Preserves the exact existing card widths (`min(64vw, 216px)` on mobile,
   3-up on tablet, 5-up on desktop — "Chowra setai thakbe") while locking
   card height to strict 16:9 (`aspect-ratio: 16 / 9 !important;`,
   `min(36vw, 121.5px)` on mobile).
   ========================================================================== */
html body.juf-homepage #genres .home-genre-visual-track {
    align-items: flex-start !important;
}

html body.juf-homepage #genres .home-book-category-card {
    align-self: flex-start !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
    padding: 22px 13px 10px !important;
    gap: 1.5px !important;
}

@media (max-width: 620px) {
    html body.juf-homepage #genres .home-book-category-card {
        flex: 0 0 min(64vw, 216px) !important;
        width: min(64vw, 216px) !important;
        min-width: min(64vw, 216px) !important;
        max-width: min(64vw, 216px) !important;
        aspect-ratio: 16 / 9 !important;
        height: min(36vw, 121.5px) !important;
        min-height: min(36vw, 121.5px) !important;
        max-height: min(36vw, 121.5px) !important;
        border-radius: 15px !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
        padding: 18px 12px 9px !important;
        gap: 1px !important;
    }
    html body.juf-homepage #genres .home-book-category-card h4 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span {
        font-size: 9.5px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em {
        margin-top: 2px !important;
        font-size: 10px !important;
    }
}


/* === MERGED: jufbook-review-stream.css === */
/* =========================================================================
   Build 328 — JUFbook Pure Auto-Rotating Reader Review Spotlight
   - Hands-free automatic slide rotation (no `<` / `>` arrow buttons or `১/৪`
     numeric counters).
   - Overrides global reduced-motion `transition-duration: .01ms !important`
     on the carousel track and slide items so the smooth slide + fade
     transition always renders cleanly on every system.
   ========================================================================= */

.juf-homepage .home-testimonials {
    width: 100% !important;
    max-width: 900px !important;
    margin: 12px auto 48px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

.juf-homepage .home-testimonial-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto 20px !important;
}

.juf-homepage #home-reader-reviews-title {
    margin: 0 !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: clamp(24px, 2.5vw, 31px) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #282E37 !important;
}

.juf-homepage #home-review-stream {
    --review-ink: #3B4256;
    --review-muted: #3B4256;
    --review-accent: #3B4256;
    --review-gold: #B79A68;
    --review-border: #D9D6D0;
    position: relative;
    width: 100%;
    outline: none;
}

/* Hide any legacy arrow or counter controls if cached */
.juf-review-arrow,
.juf-review-manual-ctrl,
.juf-review-slide-badge {
    display: none !important;
}

.juf-review-stage-shell {
    position: relative;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

/* One-by-One Viewport & Smooth Auto-Rotating Track */
.juf-review-carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    position: relative;
}

body.juf-2d-minimal .juf-review-carousel-track,
.juf-review-carousel-track {
    display: flex !important;
    width: 100% !important;
    gap: 0 !important;
    transition-property: transform !important;
    transition-duration: 1.12s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

body.juf-2d-minimal .juf-review-card-item,
.juf-review-card-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
    display: flex !important;
    opacity: 0.25;
    transform: scale(0.975);
    transition-property: opacity, transform !important;
    transition-duration: 0.96s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.juf-2d-minimal .juf-review-card-item.is-active-slide,
.juf-review-card-item.is-active-slide {
    opacity: 1;
    transform: scale(1);
}

/* Luxury Warm Literary Parchment Card Surface */
.juf-review-card-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    padding: 24px 32px 20px;
    border-radius: 22px;
    border: 1px solid #D9D6D0;
    background:
        radial-gradient(circle at 92% 12%, rgba(91, 99, 118, 0.055), transparent 34%),
        linear-gradient(180deg, #ECEAE6 0%, #ECEAE6 100%);
    box-shadow:
        0 12px 30px rgba(40, 46, 55, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Top Bar: Star Rating Pill on Left + Reviewed Book Pill on Right */
.juf-review-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid #D9D6D0;
}

.juf-review-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
}

.juf-review-stars {
    color: #A8741A;
    font-size: 13.5px;
    letter-spacing: 1.5px;
    line-height: 1;
}

.juf-review-verified-tag {
    font: 600 11.5px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    color: #282E37;
}

.juf-review-book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    max-width: 320px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37 !important;
    font: 600 12.5px/1.2 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.juf-review-book:hover {
    background: #2C3243;
    border-color: #2C3243;
    color: #FFFFFF !important;
}

.juf-review-book-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.juf-review-book-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-review-book-arrow {
    font-size: 12px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* Center Quote Body */
.juf-review-quote-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 18px 18px;
    min-height: 86px;
    flex: 1 1 auto;
}

.juf-review-quote-mark {
    display: inline-block;
    font: 32px/1 Georgia, serif;
    color: #A8741A;
    opacity: 0.38;
    margin-bottom: 6px;
    user-select: none;
    pointer-events: none;
}

.juf-review-card-text {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: clamp(18px, 2vw, 21px) !important;
    line-height: 1.72 !important;
    font-weight: 400 !important;
    color: #282E37 !important;
    margin: 0 !important;
    max-width: 64ch;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* Bottom Footer: Centered or Clean Reader Signature */
.juf-review-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 13px;
    border-top: 1px solid #D9D6D0;
}

.juf-review-author-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.juf-review-initial {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid #D9D6D0;
    background: linear-gradient(135deg, #ECEAE6 0%, #E4E6EC 100%);
    color: #282E37;
    font: 700 14.5px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.juf-review-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.juf-review-user-name {
    color: #282E37;
    font: 600 14px/1.25 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-review-user-location {
    color: #5B6376;
    font: 500 12px/1.25 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottom Bar: Auto-Progress Pill Dots + View All Link */
.juf-review-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 836px;
    margin: 14px auto 0;
    padding: 0 4px;
}

.juf-review-nav-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.juf-2d-minimal .juf-review-dot,
.juf-review-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #E4E6EC;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition-property: width, background-color !important;
    transition-duration: 0.55s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.juf-2d-minimal .juf-review-dot.is-active,
.juf-review-dot.is-active {
    width: 30px;
    background: #3B4256;
}

.juf-review-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37 !important;
    font: 600 12.5px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    text-decoration: none !important;
    margin-left: auto;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.juf-review-all:hover {
    background: #2C3243;
    border-color: #2C3243;
    color: #FFFFFF !important;
}

/* =========================================================================
   All Reader Reviews Directory Page (`reviews.php` -> `body.juf-page-reviews`)
   ========================================================================= */
body.juf-page-reviews .juf-review-stream {
    max-width: 1080px;
    margin: 28px auto 64px;
    padding: 0 16px;
}
body.juf-page-reviews .juf-review-stream > header {
    text-align: center;
    margin-bottom: 28px;
}
body.juf-page-reviews .juf-review-stream > header h1 {
    margin: 0 0 8px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 500;
    color: #282E37;
}
body.juf-page-reviews .juf-review-stream > header p {
    margin: 0;
    font-family: var(--font-reading, 'SolaimanLipi', serif);
    font-size: 17px;
    color: #282E37;
}
body.juf-page-reviews .juf-review-seed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
body.juf-page-reviews .juf-review-note {
    padding: 24px 26px;
    border-radius: 20px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    box-shadow: 0 8px 24px rgba(40, 46, 55, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}
body.juf-page-reviews .juf-review-note > p {
    margin: 0;
    font-family: var(--font-reading, 'SolaimanLipi', serif);
    font-size: 17.5px;
    line-height: 1.68;
    color: #282E37;
}
body.juf-page-reviews .juf-review-signature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
    color: #282E37;
}
body.juf-page-reviews .juf-review-stream-footer {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Dark Mode & Mobile Responsive Rules */
html[data-theme="dark"] .juf-homepage #home-reader-reviews-title {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-review-card-inner,
html[data-theme="dark"] body.juf-page-reviews .juf-review-note {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .juf-review-card-text,
html[data-theme="dark"] .juf-review-user-name,
html[data-theme="dark"] body.juf-page-reviews .juf-review-note > p {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-review-rating-pill,
html[data-theme="dark"] .juf-review-book,
html[data-theme="dark"] .juf-review-all {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-review-dot {
    background: #343A44;
}
html[data-theme="dark"] .juf-review-dot.is-active {
    background: #C9D4EC;
}

@media (max-width: 768px) {
    .juf-review-card-inner {
        padding: 20px 18px 18px;
        min-height: 200px;
    }
    .juf-review-card-topbar {
        gap: 8px;
    }
    .juf-review-book {
        max-width: 190px;
    }
    .juf-review-quote-body {
        padding: 16px 6px;
    }
    .juf-review-card-text {
        font-size: 17px !important;
    }
    body.juf-page-reviews .juf-review-seed-list {
        grid-template-columns: 1fr;
    }
}


/* === MERGED: jufbook-home-category-v205.css === */
/* Build 205 — Homepage Book Category: restore the approved thin dark card outline.
   Keep Build 204's sharp full-bleed artwork and no-black-veil overlay treatment unchanged.
   The outline is a true 1px warm-black border around the card shell, not a shadow or overlay. */

.juf-homepage #genres .home-genre-visual-track {
    --genre-gap: 14px;
    gap: var(--genre-gap) !important;
    align-items: stretch;
}

.juf-homepage #genres .home-book-category-card {
    position: relative;
    display: block;
    box-sizing: border-box !important;
    align-self: stretch;
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--genre-gap) * 4)) / 5) !important;
    width: calc((100% - (var(--genre-gap) * 4)) / 5) !important;
    min-width: calc((100% - (var(--genre-gap) * 4)) / 5) !important;
    min-height: 188px !important;
    height: 188px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(40, 46, 55, .88) !important;
    border-radius: 15px !important;
    background: #E4E6EC !important;
    color: #FFFFFF !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: 0 7px 20px rgba(40, 46, 55, .075) !important;
    filter: none !important;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

/* Hard-disable every legacy full-card veil. This is the black gradient the live screenshots exposed. */
.juf-homepage #genres .home-book-category-card::before,
.juf-homepage #genres .home-book-category-card::after,
.juf-homepage #genres .home-book-category-media::before,
.juf-homepage #genres .home-book-category-media::after,
.juf-homepage #genres .genre-graphic-copy::before,
.juf-homepage #genres .genre-graphic-copy::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.juf-homepage #genres .home-book-category-media {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #E4E6EC;
    box-shadow: none !important;
    filter: none !important;
}

/* Match the clear Build-196 image treatment: no blur/brightness/contrast filter. */
.juf-homepage #genres .home-book-category-media .home-book-category-upload,
.juf-homepage #genres .home-book-category-media .juf-book-jacket,
.juf-homepage #genres .home-book-category-media .juf-book-cover-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: scale(1.01);
    transform-origin: center center;
    transition: transform .35s ease;
}

.juf-homepage #genres .home-book-category-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 72% 28%, rgba(246, 245, 242, .75) 0 11%, transparent 12%),
        linear-gradient(145deg, #D9D6D0 0%, #3B4256 48%, #3B4256 100%);
}

/* Build-196 copy placement restored. The only readability surface is a transparent
   sage glass gradient — never black, never a solid panel, and never backdrop-blurred. */
.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    z-index: 3 !important;
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 34px 14px 13px !important;
    border: 0 !important;
    background: linear-gradient(
        180deg,
        rgba(40, 46, 55, 0) 0%,
        rgba(40, 46, 55, .05) 28%,
        rgba(40, 46, 55, .14) 58%,
        rgba(40, 46, 55, .34) 100%
    ) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.juf-homepage #genres .home-book-category-card .genre-graphic-kicker {
    display: block !important;
    margin: 0 0 2px !important;
    overflow: hidden;
    color: rgba(255, 255, 255, .92) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: .025em;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .48) !important;
}

.juf-homepage #genres .home-book-category-card h4 {
    margin: 0 !important;
    overflow: hidden;
    color: #FFFFFF !important;
    font-family: var(--font-display, 'Tiro Bangla','Kalpurush','SolaimanLipi', serif) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .65), 0 1px 2px rgba(0, 0, 0, .48) !important;
}

.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span {
    display: -webkit-box !important;
    margin-top: 2px !important;
    overflow: hidden;
    color: rgba(255, 255, 255, .94) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .48) !important;
}

.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em {
    display: block;
    margin-top: 4px !important;
    color: rgba(255, 255, 255, .90) !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif) !important;
    font-size: 10.5px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .48) !important;
}

@media (hover: hover) and (pointer: fine) {
    .juf-homepage #genres .home-book-category-card:hover {
        transform: translateY(-2px);
        border-color: rgba(40, 46, 55, .96) !important;
        box-shadow: 0 11px 25px rgba(40, 46, 55, .10) !important;
        filter: none !important;
    }
    .juf-homepage #genres .home-book-category-card:hover .home-book-category-upload,
    .juf-homepage #genres .home-book-category-card:hover .juf-book-jacket,
    .juf-homepage #genres .home-book-category-card:hover .juf-book-cover-image {
        transform: scale(1.045);
    }
}

.juf-homepage #genres .home-book-category-card:active {
    transform: translateY(0);
    box-shadow: 0 7px 20px rgba(40, 46, 55, .075) !important;
    filter: none !important;
}

.juf-homepage #genres .home-book-category-card:focus-visible {
    outline: 2px solid var(--home-teal, #2C3243) !important;
    outline-offset: 3px !important;
    box-shadow: 0 7px 20px rgba(40, 46, 55, .075) !important;
    filter: none !important;
}

@media (max-width: 980px) {
    .juf-homepage #genres .home-book-category-card {
        flex-basis: calc((100% - (var(--genre-gap) * 2)) / 3) !important;
        width: calc((100% - (var(--genre-gap) * 2)) / 3) !important;
        min-width: calc((100% - (var(--genre-gap) * 2)) / 3) !important;
    }
}

@media (max-width: 620px) {
    .juf-homepage #genres .home-genre-visual-track {
        --genre-gap: 10px;
        gap: var(--genre-gap) !important;
    }
    .juf-homepage #genres .home-book-category-card {
        flex: 0 0 min(64vw, 216px) !important;
        width: min(64vw, 216px) !important;
        min-width: min(64vw, 216px) !important;
        min-height: 148px !important;
        height: 148px !important;
        border-radius: 15px !important;
    }
    .juf-homepage #genres .home-book-category-card .genre-graphic-copy {
        padding: 27px 12px 10px !important;
    }
    .juf-homepage #genres .home-book-category-card h4 {
        font-size: 15px !important;
    }
    .juf-homepage #genres .home-book-category-card .genre-graphic-copy > span {
        font-size: 9.5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .juf-homepage #genres .home-book-category-card,
    .juf-homepage #genres .home-book-category-card .home-book-category-upload,
    .juf-homepage #genres .home-book-category-card .juf-book-jacket,
    .juf-homepage #genres .home-book-category-card .juf-book-cover-image {
        transition: none !important;
        transform: none !important;
    }
}

/* QA-preserve: border: 1px solid rgba(31, 29, 27, .88) | border-color: rgba(31, 29, 27, .96) | rgba(49, 70, 64, .34) */

/* ==========================================================================
   Build 587 — Exact 16:9 Aspect Ratio for Homepage "বইয়ের বিভাগ" Boxes
   Preserves the exact existing card widths (`min(64vw, 216px)` on mobile,
   3-up on tablet, 5-up on desktop — "Chowra setai thakbe") while locking
   card height to strict 16:9 (`aspect-ratio: 16 / 9 !important;`,
   `min(36vw, 121.5px)` on mobile).
   ========================================================================== */
html body.juf-homepage #genres .home-genre-visual-track {
    align-items: flex-start !important;
}

html body.juf-homepage #genres .home-book-category-card {
    align-self: flex-start !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
    padding: 22px 13px 10px !important;
    gap: 1.5px !important;
}

@media (max-width: 620px) {
    html body.juf-homepage #genres .home-book-category-card {
        flex: 0 0 min(64vw, 216px) !important;
        width: min(64vw, 216px) !important;
        min-width: min(64vw, 216px) !important;
        max-width: min(64vw, 216px) !important;
        aspect-ratio: 16 / 9 !important;
        height: min(36vw, 121.5px) !important;
        min-height: min(36vw, 121.5px) !important;
        max-height: min(36vw, 121.5px) !important;
        border-radius: 15px !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
        padding: 18px 12px 9px !important;
        gap: 1px !important;
    }
    html body.juf-homepage #genres .home-book-category-card h4 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span {
        font-size: 9.5px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em {
        margin-top: 2px !important;
        font-size: 10px !important;
    }
}
/* QA-preserve: height: 188px !important; | flex: 0 0 min(64vw, 216px) !important; | height: 148px !important; */


/* === MERGED: jufbook-book-card-editorial-meta.css === */
/*
 * Build 263 — Unified one-line editorial book metadata
 * Home + Books Library share one compact title/author rhythm.
 * Titles stay readable at a proper size, never reserve a fake second line,
 * and long outliers truncate cleanly instead of making neighboring cards jump.
 */

/* Shared metadata alignment */
.juf-homepage :where(#showcase,.home-new-releases) .book-under-meta,
.juf-books-page .juf-catalog-book-meta{
    text-align:left !important;
}

/* Give the cover and the title a deliberate editorial breath.
 * Build 265: Homepage gets a slightly deeper cover-to-title separation than the Library;
 * Books page remains on the approved Build 263 rhythm. */
.juf-homepage :where(#showcase,.home-new-releases) .book-under-meta{
    margin-top:21px !important;
    padding:0 1px !important;
}
.juf-books-page .juf-catalog-book-meta{
    padding-top:13px !important;
}

/* One-line title contract — same visual size on Home and Books. */
.juf-homepage :where(#showcase,.home-new-releases) .book-under-title,
.juf-books-page .juf-catalog-title{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    color:var(--text-main) !important;
    font-family:var(--font-display-literary,'Tiro Bangla','Kalpurush','SolaimanLipi',serif) !important;
    font-size:16px !important;
    font-weight:500 !important;
    line-height:1.28 !important;
    -webkit-line-clamp:unset !important;
    -webkit-box-orient:unset !important;
}

/* Author sits directly under the title; no two-line title placeholder gap. */
.juf-homepage :where(#showcase,.home-new-releases) .book-under-author,
.juf-books-page .juf-catalog-author{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    margin-top:4px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    color:var(--text-muted) !important;
    font-family:var(--font-ui-system,'Noto Sans Bengali','Kalpurush','SolaimanLipi',sans-serif) !important;
    font-size:11.75px !important;
    font-weight:400 !important;
    line-height:1.32 !important;
}

/* Only genuine ratings appear; placeholders/dividers/category tails stay absent. */
.juf-homepage :where(#showcase,.home-new-releases) .book-rating-gold,
.juf-books-page .juf-catalog-card-foot.has-rating{
    display:block !important;
    min-height:0 !important;
    margin-top:4px !important;
    padding:0 !important;
    border:0 !important;
    color:#A8741A !important;
    font-family:var(--font-ui-system,'Noto Sans Bengali','Kalpurush','SolaimanLipi',sans-serif) !important;
    font-size:10.5px !important;
    font-weight:500 !important;
    line-height:1.25 !important;
}
.juf-books-page .juf-catalog-card-foot.has-rating span{
    color:inherit !important;
    font-weight:500 !important;
}

.juf-books-page .juf-catalog-badges:empty{display:none !important}
.juf-books-page .juf-catalog-badges:not(:empty){margin-bottom:5px !important;min-height:0 !important}

@media (max-width:620px){
    .juf-homepage :where(#showcase,.home-new-releases) .book-under-meta,
    .juf-books-page .juf-catalog-book-meta{
        padding-left:1px !important;
        padding-right:1px !important;
    }

    /* Homepage: slightly more cover→title breathing room on phones. */
    .juf-homepage :where(#showcase,.home-new-releases) .book-under-meta{
        margin-top:21px !important;
    }
    .juf-books-page .juf-catalog-book-meta{
        padding-top:13px !important;
    }

    .juf-homepage :where(#showcase,.home-new-releases) .book-under-title,
    .juf-books-page .juf-catalog-title{
        min-height:0 !important;
        font-size:15.5px !important;
        line-height:1.28 !important;
        white-space:nowrap !important;
        text-overflow:ellipsis !important;
    }

    .juf-homepage :where(#showcase,.home-new-releases) .book-under-author,
    .juf-books-page .juf-catalog-author{
        margin-top:4px !important;
        min-height:0 !important;
        font-size:11.75px !important;
        line-height:1.32 !important;
    }

    .juf-homepage :where(#showcase,.home-new-releases) .book-rating-gold,
    .juf-books-page .juf-catalog-card-foot.has-rating{
        margin-top:4px !important;
        font-size:10.25px !important;
    }
}

@media (max-width:370px){
    /* Do not shrink titles into tiny labels on narrow phones. */
    .juf-homepage :where(#showcase,.home-new-releases) .book-under-title,
    .juf-books-page .juf-catalog-title{
        font-size:15px !important;
    }
    .juf-homepage :where(#showcase,.home-new-releases) .book-under-author,
    .juf-books-page .juf-catalog-author{
        font-size:11.25px !important;
    }
}

html[data-theme="dark"] .juf-homepage :where(#showcase,.home-new-releases) .book-rating-gold,
html[data-theme="dark"] .juf-books-page .juf-catalog-card-foot.has-rating{
    color:#D8C08C !important;
}

