
:root{
	--odcu-espresso:#23170F;
	--odcu-night:#17100B;
	--odcu-parchment:#E8DCC7;
	--odcu-bone:#F5EFE5;
	--odcu-surface:#FCF8F1;
	--odcu-text:#2A211A;
	--odcu-muted:#746658;
	--odcu-border:#D7C9B4;
	--odcu-bronze:#9B743D;
	--odcu-bronze-soft:#C59A62;
}
.woocommerce-MyAccount-content:has(.odcu-reader){width:100%!important;max-width:none!important;float:none!important}
.woocommerce-MyAccount-content:has(.odcu-reader)~*{display:none}
.odcu-library{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--odcu-text);max-width:1120px;margin:0 auto;padding:12px 0 48px}
.odcu-library__hero{max-width:720px;margin-bottom:34px}
.odcu-library__eyebrow,.odcu-book-card__type{font-size:.72rem;font-weight:800;letter-spacing:.16em;color:var(--odcu-bronze)}
.odcu-library__hero h2{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(2.3rem,5vw,4.1rem);font-weight:500;line-height:.95;margin:8px 0 14px}
.odcu-library__hero p{color:var(--odcu-muted);font-size:1.02rem;line-height:1.7}
.odcu-book-card{display:grid;grid-template-columns:minmax(230px,34%) 1fr;background:var(--odcu-surface);border:1px solid var(--odcu-border);border-radius:26px;overflow:hidden;box-shadow:0 24px 60px rgba(35,23,15,.08)}
.odcu-book-card__cover{position:relative;min-height:450px;background:var(--odcu-night);overflow:hidden}
.odcu-book-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.odcu-book-card__cover:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(23,16,11,.58),transparent 44%)}
.odcu-book-card__badge{position:absolute;left:18px;bottom:18px;z-index:2;background:rgba(245,239,229,.94);color:var(--odcu-espresso);border-radius:999px;padding:8px 12px;font-size:.72rem;font-weight:800;letter-spacing:.04em}
.odcu-book-card__body{padding:clamp(28px,5vw,58px);display:flex;flex-direction:column;justify-content:center}
.odcu-book-card__body h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(2.1rem,4vw,3.5rem);font-weight:500;line-height:1.02;margin:12px 0 14px}
.odcu-book-card__body>p{font-size:1rem;line-height:1.7;color:var(--odcu-muted);max-width:650px}
.odcu-book-progress{margin:28px 0 26px}
.odcu-book-progress>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:.83rem}
.odcu-book-progress__track{height:5px!important;background:#e8dece;border-radius:999px;margin:10px 0 7px;overflow:hidden}
.odcu-book-progress__track i{display:block;height:100%;background:var(--odcu-bronze);border-radius:999px}
.odcu-book-progress small{color:var(--odcu-muted)}
.odcu-book-card__button,.odcu-library-empty a{display:inline-flex;align-items:center;justify-content:center;gap:18px;align-self:flex-start;background:var(--odcu-espresso);color:var(--odcu-bone)!important;text-decoration:none!important;border-radius:999px;padding:14px 22px;font-weight:800;transition:.2s ease}
.odcu-book-card__button:hover,.odcu-library-empty a:hover{transform:translateY(-1px);background:var(--odcu-night)}
.odcu-library-empty{text-align:center;padding:56px 24px;background:var(--odcu-surface);border:1px solid var(--odcu-border);border-radius:22px}
.odcu-library-empty>span{font-size:2rem;color:var(--odcu-bronze)}
.odcu-library-empty h2,.odcu-library-empty h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:2rem;font-weight:500;margin:8px 0}
.odcu-library-empty p{color:var(--odcu-muted);max-width:620px;margin:0 auto 20px;line-height:1.7}
.odcu-library-empty a{align-self:auto}

.odcu-reader{--reader-scale:1;position:relative;background:var(--odcu-night);color:var(--odcu-bone);min-height:calc(100vh - 120px);border-radius:24px;overflow:hidden;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 28px 80px rgba(23,16,11,.18)}
.odcu-reader__topbar{height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(23,16,11,.98);position:relative;z-index:5}
.odcu-reader__back{justify-self:start;color:var(--odcu-parchment)!important;text-decoration:none!important;font-size:.86rem;display:flex;gap:8px;align-items:center}
.odcu-reader__title{text-align:center;display:grid;gap:3px}
.odcu-reader__title span{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.05rem;letter-spacing:.06em}
.odcu-reader__title small{font-size:.58rem;letter-spacing:.16em;color:var(--odcu-bronze-soft);text-transform:uppercase}
.odcu-reader__fullscreen{justify-self:end;width:40px;height:40px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:transparent;color:var(--odcu-parchment);font-size:1.1rem;cursor:pointer}
.odcu-reader__progress{height:3px;background:rgba(255,255,255,.06)}
.odcu-reader__progress i{display:block;height:100%;width:0;background:var(--odcu-bronze-soft);transition:width .2s}
.odcu-reader__stage{position:relative;display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;background:radial-gradient(circle at 50% 10%,rgba(197,154,98,.11),transparent 36%),#110c08;min-height:680px;padding:34px 0}
.odcu-reader__viewport{overflow:auto;max-height:calc(100vh - 250px);padding:4px 22px 30px;display:flex;justify-content:center;align-items:flex-start;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.odcu-reader__paper{position:relative;width:min(100%,calc(790px * var(--reader-scale)));flex:0 0 auto;transition:width .18s ease;background:#efe6d8;box-shadow:0 20px 55px rgba(0,0,0,.4)}
.odcu-reader__paper img{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.odcu-reader__loading{position:absolute;inset:0;z-index:4;display:grid;place-content:center;justify-items:center;gap:10px;background:#efe6d8;color:var(--odcu-muted);min-height:480px}
.odcu-reader__loading span{width:32px;height:32px;border-radius:50%;border:2px solid #d8c8b2;border-top-color:var(--odcu-bronze);animation:odcu-spin .8s linear infinite}
.odcu-reader__loading.is-hidden{display:none}
@keyframes odcu-spin{to{transform:rotate(360deg)}}
.odcu-reader__watermark{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3;display:flex;flex-direction:column;justify-content:space-around;opacity:.085;transform:rotate(-23deg) scale(1.25)}
.odcu-reader__watermark span{white-space:nowrap;text-align:center;color:#3b2b20;font-weight:800;font-size:clamp(.62rem,1.4vw,.85rem);letter-spacing:.08em}
.odcu-reader__arrow{width:42px;height:42px;margin:auto;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.035);color:var(--odcu-parchment);font-size:2rem;line-height:1;cursor:pointer;transition:.2s}
.odcu-reader__arrow:hover{background:rgba(197,154,98,.16);border-color:rgba(197,154,98,.34)}
.odcu-reader__arrow:disabled{opacity:.22;cursor:default}
.odcu-reader__controls{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid rgba(255,255,255,.08);background:#17100b}
.odcu-reader__pager,.odcu-reader__zoom{display:flex;align-items:center;gap:10px}
.odcu-reader__pager button,.odcu-reader__zoom button{height:38px;min-width:38px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:transparent;color:var(--odcu-parchment);padding:0 12px;cursor:pointer;font-weight:700}
.odcu-reader__pager span{font-size:.8rem;color:#cbbda8}
.odcu-reader__notice{text-align:center;margin:0;padding:12px 20px 16px;background:#17100b;color:#8f806f;font-size:.7rem;letter-spacing:.02em}
.odcu-reader:fullscreen{border-radius:0;height:100vh}
.odcu-reader:fullscreen .odcu-reader__stage{min-height:calc(100vh - 165px)}
.odcu-reader:fullscreen .odcu-reader__viewport{max-height:calc(100vh - 190px)}

@media(max-width:900px){
	.woocommerce-account .woocommerce-MyAccount-content{width:100%!important}
	.odcu-library{padding:0 0 34px}
	.odcu-book-card{grid-template-columns:1fr}
	.odcu-book-card__cover{min-height:360px;max-height:500px}
	.odcu-book-card__cover img{object-position:center 28%}
	.odcu-book-card__body{padding:28px 22px 30px}
	.odcu-book-card__button{width:100%}
	.odcu-reader{border-radius:0;margin-left:-15px;margin-right:-15px;min-height:100dvh}
	.odcu-reader__topbar{height:60px;grid-template-columns:auto 1fr auto;padding:0 12px}
	.odcu-reader__back span{display:none}
	.odcu-reader__title span{font-size:.86rem}
	.odcu-reader__title small{display:none}
	.odcu-reader__stage{grid-template-columns:1fr;min-height:calc(100dvh - 170px);padding:16px 0 8px}
	.odcu-reader__viewport{max-height:calc(100dvh - 205px);padding:0 8px 22px;justify-content:flex-start}
	.odcu-reader__paper{width:calc(100% * var(--reader-scale));min-width:calc(100% * var(--reader-scale));margin:0 auto}
	.odcu-reader__arrow{display:none}
	.odcu-reader__controls{position:sticky;bottom:0;z-index:7;min-height:64px;padding:10px 12px}
	.odcu-reader__pager{flex:1;justify-content:space-between}
	.odcu-reader__pager button{width:42px;height:42px}
	.odcu-reader__zoom{display:none}
	.odcu-reader__notice{display:none}
}
@media(max-width:480px){
	.odcu-library__hero h2{font-size:2.65rem}
	.odcu-book-card__cover{min-height:330px}
}
