
.hd-media-library{padding:35px 0 70px;background:linear-gradient(160deg,#fffbf3,#fff 44%,#f9f4ea);min-height:65vh}.hd-media-library .container{max-width:1160px}.hd-library-intro{text-align:center;padding:24px 0 30px}.hd-library-eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#a96827}.hd-library-intro h1{font-size:clamp(28px,4vw,43px);margin:10px 0;color:#453021;font-weight:800}.hd-library-intro p{color:#76695c;font-size:14px}.hd-media-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0 24px}.hd-media-search-wrap{flex:1;min-width:190px;max-width:310px}.hd-media-search{width:100%;border:1px solid #e8ddd0!important;border-radius:12px!important;background:#fff!important;padding:11px 15px!important;font-size:14px!important;color:#382d22!important}.hd-media-filters{display:flex;flex-wrap:wrap;gap:8px}.hd-filter{border:1px solid #e8d9c7;background:#fff;color:#654a36;border-radius:999px;padding:9px 17px;font-size:13px;font-weight:650;cursor:pointer}.hd-filter.is-active,.hd-filter:hover{background:#a96827;color:#fff;border-color:#a96827}.hd-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hd-media-card{overflow:hidden;background:#fff;border-radius:17px;box-shadow:0 5px 28px #4f332012;border:1px solid #f2e9df;display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s}.hd-media-card:hover{transform:translateY(-3px);box-shadow:0 10px 36px #4f33201b}.hd-media-card[hidden]{display:none}.hd-media-cover{height:186px;position:relative;background:#f5e7d5;overflow:hidden}.hd-media-cover>img{width:100%;height:100%;object-fit:cover}.hd-media-placeholder{height:100%;display:grid;place-items:center;font-size:67px;color:#b9854e;background:linear-gradient(135deg,#f9eedb,#ead2aa)}.hd-media-kind{position:absolute;top:11px;left:12px;background:#fffdf1e8;border-radius:999px;padding:5px 12px;font-size:11px;color:#7b4d24;font-weight:800}.hd-media-card-body{padding:18px;display:flex;flex:1;flex-direction:column;gap:9px}.hd-media-category{font-size:11px;font-weight:750;color:#ab752f}.hd-media-card-body h2{margin:0;font-size:17px;line-height:1.5;color:#342819;overflow-wrap:anywhere}.hd-media-author{color:#847566;font-size:12px;margin:0}.hd-media-btn{display:inline-block;text-decoration:none;background:#a96827;color:#fff;border:1px solid #a96827;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:700;cursor:pointer;text-align:center}.hd-media-btn:hover{background:#88501b;color:#fff}.hd-media-btn:disabled{opacity:.45;cursor:not-allowed}.hd-media-card-body .hd-media-btn{margin-top:auto;align-self:flex-start}.hd-media-empty,.hd-media-blank{text-align:center;padding:36px;color:#796858}.hd-media-pagination{text-align:center;margin:30px 0}.hd-media-pagination .page-numbers{display:inline-block;margin:3px;padding:9px 13px;border:1px solid #d9c8b5;border-radius:8px}.hd-media-pagination .current{background:#a96827;color:#fff}.hd-media-modal[hidden]{display:none}.hd-media-modal{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;padding:18px}.hd-modal-backdrop{position:absolute;inset:0;background:#130e0bd9}.hd-modal-window{position:relative;background:#fff;border-radius:18px;width:min(900px,100%);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 24px 70px #0004}.hd-modal-body h2{font-size:22px;margin:0 45px 19px 0;color:#3d2815}.hd-modal-close{position:absolute;top:8px;right:12px;border:0;background:#f3e8dc;color:#3b2615;border-radius:99px;width:35px;height:35px;font-size:25px;cursor:pointer}.hd-player-frame,.hd-book-reader{position:relative;width:100%;aspect-ratio:16/9;background:#131313}.hd-player-frame iframe,.hd-book-reader iframe{width:100%;height:100%;border:0}.hd-book-reader{height:min(68vh,720px);aspect-ratio:auto;background:#eee}.hd-video-player{width:100%;max-height:68vh;background:#111}.hd-audio-player{width:100%}.hd-image-view{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto}.hd-media-description{border-top:1px solid #eee;margin-top:20px;padding-top:16px;color:#5c4c40}.hd-media-modal a{margin-top:12px}.hd-media-library .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}@media(max-width:850px){.hd-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}@media(max-width:520px){.hd-media-library{padding:16px 0 50px}.hd-media-grid{grid-template-columns:1fr;gap:15px}.hd-media-cover{height:185px}.hd-media-controls{display:block}.hd-media-search-wrap{max-width:none;margin-bottom:14px}.hd-filter{padding:8px 13px}.hd-modal-window{padding:18px}.hd-modal-body h2{font-size:18px}.hd-book-reader{height:65vh}}

/* v11: Category-wise sections (no search/filter bar). */
.hd-media-category-section{margin:16px 0 44px}
.hd-media-section-heading{display:flex;align-items:center;gap:20px;margin:0 0 20px}
.hd-media-section-heading h2{font-size:clamp(20px,2.4vw,26px);font-weight:800;line-height:1.4;color:#49301d;margin:0;white-space:normal}
.hd-media-section-line{flex:1;height:1px;background:#e5d7c5}
.hd-media-library-grouped .hd-media-card-body h3{margin:0;font-size:17px;line-height:1.5;color:#342819;overflow-wrap:anywhere}
@media(max-width:520px){.hd-media-category-section{margin:12px 0 32px}.hd-media-section-heading{margin-bottom:14px;gap:12px}}

/* v12: center category title between decorative rules */
.hd-media-library-grouped .hd-media-section-heading{display:flex;align-items:center;justify-content:center;gap:16px;text-align:center;width:100%;margin-bottom:22px}
.hd-media-library-grouped .hd-media-section-heading::before{content:"";flex:1 1 0;min-width:12px;height:1px;background:#e5d7c5}
.hd-media-library-grouped .hd-media-section-heading .hd-media-section-line{flex:1 1 0;min-width:12px}
.hd-media-library-grouped .hd-media-section-heading h2{flex:0 1 auto;text-align:center;max-width:75%;overflow-wrap:anywhere}
@media(max-width:520px){.hd-media-library-grouped .hd-media-section-heading{gap:10px}.hd-media-library-grouped .hd-media-section-heading h2{font-size:19px;max-width:78%}}
