/* The selected story has its own space; other stories live in a compact shelf. */
.library-home{max-width:1160px;padding-top:24px}
.library-home .home-location{margin-bottom:18px}
.current-story{border:2px solid #d7b46c;background:#fff0c6;border-radius:23px;padding:24px;box-shadow:0 5px 0 #d7b46c28}
.current-story-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.current-story-heading h1{font-size:23px;line-height:1.2;letter-spacing:-.4px;margin:0;color:#65432b}
.current-story-status{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;padding:5px 10px;background:#fff9e8;border-radius:20px;color:#3d6c58}
.current-story-status i{width:7px;height:7px;background:#16847a;border-radius:50%}
.current-story-body{display:grid;grid-template-columns:200px 1fr;gap:26px;align-items:center}
.current-story-cover{height:190px;border:2px solid #bf9146;overflow:hidden;position:relative;border-radius:15px;background:#d5a565}
.current-story-cover img{width:100%;height:100%;display:block;object-fit:cover}
.current-story-cover>span{position:absolute;bottom:0;left:0;right:0;padding:6px 10px;color:#fff8e9;background:#183e35d9;font-size:11px;font-weight:700;letter-spacing:.5px}
.current-story-copy{min-width:0}
.current-story-copy .eyebrow{font-size:10px;letter-spacing:1.3px;color:#426c57}
.current-story-copy h2{font-size:42px;margin:9px 0 12px;letter-spacing:-1.3px}
.current-story-copy p{font-size:16px;line-height:1.6;color:#785940;margin:0;max-width:55ch}
.current-story-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}
.current-story-actions>.primary{background:#ffd16d;border:2px solid #ce9d3c;color:#3b261f;box-shadow:0 3px 0 #bd8a3566;min-width:240px}
.current-story-actions>.primary:hover{background:#ffdc8d}
.current-story-actions .small{margin:0;font-size:12px;color:#766043}
.story-library{margin-top:30px;border:3px solid #16847a;border-top:8px solid #edbd52;border-radius:23px;background:linear-gradient(125deg,#e5f4e9,#fff4cc);padding:23px;box-shadow:0 5px 0 #16847a20;min-width:0}
.library-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.library-top .eyebrow{font-size:10px;letter-spacing:2px;color:#397361}
.library-top h2{font-size:30px;margin:6px 0 0;letter-spacing:-.7px;color:#1e5c50}
.library-hint{font-size:13px;color:#4c7464;margin:10px 0 17px}
.library-nav{display:flex;gap:8px;flex:none}
.library-nav[hidden]{display:none}
.library-nav button{border:2px solid #16847a;border-radius:50%;width:44px;height:44px;min-width:44px;background:#ffdc83;color:#1b5e51;font-size:22px;line-height:1}
.library-nav button:hover:not(:disabled){background:#ffe8ac}
.library-nav button:disabled{cursor:default;opacity:.35;background:#eef5e8}
.story-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 28px)/3);gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#3e927b #c8dfce;padding:2px 2px 13px;min-width:0}
.story-track:focus-visible{outline:3px solid #225e9b;outline-offset:5px;border-radius:10px}
.story-card{min-width:0;scroll-snap-align:start;scroll-snap-stop:always;border-radius:15px}
.story-card-button{display:flex;flex-direction:column;padding:0;width:100%;height:100%;background:#fffbef;border:2px solid #d0b57b;border-radius:15px;overflow:hidden;box-shadow:0 3px 0 #87653b15;text-align:left;white-space:normal;transition:transform .15s,border-color .15s}
.story-card-button:hover{border-color:#16847a;transform:translateY(-2px)}
.story-card-art{display:block;width:100%;position:relative;background:#dbb781}
.story-card-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.story-card-status{position:absolute;top:9px;left:9px;border:1px solid #ffffff70;background:#215e50;color:#fff8e9;border-radius:15px;padding:4px 8px;font-size:10px;line-height:1.3;font-weight:700}
.story-card-status.upcoming{background:#ffdc83;color:#654820;border-color:#fff0c6}
.story-card-copy{padding:15px;display:flex;flex-direction:column;flex:1;align-items:flex-start;width:100%;gap:7px}
.story-card-genre{color:#47725d;font-size:9px;line-height:1.3;letter-spacing:1.1px;text-transform:uppercase;font-weight:800}
.story-card-title{font:700 24px/1.15 'Outfit',sans-serif;letter-spacing:-.5px;display:block;min-height:2.3em}
.story-card-teaser{font-size:12px;line-height:1.5;color:#84654e;display:block;flex:1}
.story-card-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:6px;padding-top:10px;border-top:1px solid #e6d6b6;font-size:12px;font-weight:800;color:#1e6655}
.story-card.romance .story-card-button{background:#fff1ec}
.story-card.spotlight .story-card-button{background:#f5f0fb}
.library-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:10px;color:#4c7564}
.library-bottom>span:first-child{font-weight:700}
.home-extras{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}
.home-extras .footer-link{margin:0}
.library-home .studio-footer{margin-top:24px}
.story-preview-cover{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:2px solid #d0b57b;border-radius:14px;display:block;margin-top:18px}
@media(max-width:900px){
 .story-track{grid-auto-columns:calc((100% - 14px)/2)}
 .current-story-body{grid-template-columns:160px 1fr;gap:20px}
 .current-story-cover{height:170px}
 .current-story-copy h2{font-size:34px}
}
@media(max-width:760px){
 .library-home{padding:18px 16px 30px}
 .library-home .home-location{font-size:11px;gap:10px;margin-bottom:15px}
 .current-story{padding:16px;border-radius:20px}
 .current-story-heading{margin-bottom:16px;gap:8px}
 .current-story-heading h1{font-size:19px;letter-spacing:-.3px}
 .current-story-status{font-size:9px;padding:4px 8px;gap:5px}
 .current-story-body{grid-template-columns:100px minmax(0,1fr);gap:14px;align-items:start}
 .current-story-cover{height:145px;border-radius:12px}
 .current-story-cover>span{font-size:9px;padding:5px 7px}
 .current-story-copy .eyebrow{font-size:8px;letter-spacing:.7px;line-height:1.4;display:block}
 .current-story-copy h2{font-size:27px;letter-spacing:-.7px;margin:8px 0}
 .current-story-copy p{font-size:12px;line-height:1.55}
 .current-story-actions{gap:10px;margin-top:16px}
 .current-story-actions>.primary{width:100%;min-width:0;font-size:15px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
 .current-story-actions>.quiet{width:100%}
 .current-story-actions .small{font-size:10px;line-height:1.5}
 .story-library{padding:14px 12px 12px;margin-top:24px;border-radius:20px;border-top-width:7px}
 .library-top{gap:8px;align-items:center}
 .library-top .eyebrow{font-size:8px;letter-spacing:1.5px}
 .library-top h2{font-size:21px;letter-spacing:-.6px;margin-top:5px}
 .library-nav{gap:5px}
 .library-nav button{min-width:44px;width:44px;height:44px;font-size:20px;padding:0}
 .library-hint{font-size:11px;line-height:1.5;margin:10px 0 12px}
 .story-track{gap:10px;grid-auto-columns:calc((100% - 14px)/2);padding-bottom:12px}
 .story-card-button{border-radius:12px}
 .story-card-art img{aspect-ratio:4/3}
 .story-card-status{font-size:8px;top:6px;left:6px;padding:3px 6px}
 .story-card-copy{padding:11px 9px;gap:6px}
 .story-card-genre{font-size:7px;letter-spacing:.6px;min-height:1.3em}
 .story-card-title{font-size:19px;letter-spacing:-.3px}
 .story-card-teaser{font-size:10px;line-height:1.5}
 .story-card-cta{font-size:11px;padding-top:8px;margin-top:3px}
 .library-bottom{font-size:9px;gap:5px;margin-top:8px}
 .library-bottom>span:last-child{display:none}
 .home-extras{margin-top:20px;gap:14px}
 .home-extras .invite-home{font-size:12px}
 .home-extras .footer-link{font-size:11px}
 .library-home .studio-footer{font-size:10px;padding-top:20px}
}
@media(max-width:350px){
 .library-home{padding-left:12px;padding-right:12px}
 .current-story{padding:13px}
 .current-story-heading h1{font-size:18px}
 .current-story-body{grid-template-columns:85px minmax(0,1fr);gap:11px}
 .current-story-cover{height:140px}
 .current-story-copy h2{font-size:24px}
 .library-top h2{font-size:21px}
 .library-nav button{min-width:44px;width:44px;height:44px}
 .story-card-title{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.story-card-button{transition:none;transform:none!important}}
