/* Poetry uses the site's metal frame, Oswald headings, and two-tone light. */
.content-dialog[data-view="lyrics"]{width:min(1120px,calc(100% - 32px));height:min(900px,calc(100dvh - 40px))}
.content-dialog[data-view="lyrics"] .modal-body{padding:18px 8px 7px;scrollbar-width:thin;scrollbar-color:#285675 #050a10;scroll-behavior:auto}
.poetry-library{min-width:0}
.poetry-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:17px 22px 25px;border-bottom:1px solid #486171;background:radial-gradient(ellipse at 0 0,#007cbd24,transparent 68%),radial-gradient(ellipse at 100% 50%,#a138001c,transparent 60%)}
.poetry-library .poetry-eyebrow{font-family:Oswald,'Arial Narrow',sans-serif;font-size:12px;font-weight:400;letter-spacing:.15em;text-transform:uppercase;line-height:1.65;color:#b9c8d4;margin:0 0 11px}
.poetry-eyebrow span{color:#ff862d;padding-inline:7px}
.poetry-library h3{margin:0;font-family:Oswald,'Arial Narrow',sans-serif;font-size:clamp(29px,3.6vw,45px);line-height:1.18;letter-spacing:.015em;text-transform:uppercase;font-weight:700;color:#eef4f8;text-shadow:0 2px 3px #000}
.poetry-library .poetry-description{color:#b2c1cc;font-size:13px;line-height:1.7;margin:13px 0 0;max-width:650px}
.poetry-total{flex:0 0 108px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:108px;gap:1px;border-left:1px solid #27b4e9;border-right:1px solid #fa7d29;background:linear-gradient(125deg,#06213199,#02080dcc 55%,#27120880);box-shadow:inset 2px 0 11px #008dff19,inset -2px 0 11px #ff630019}
.poetry-total strong{font-family:Oswald,sans-serif;font-size:52px;line-height:1.15;color:#eefaff;font-weight:400;text-shadow:-2px 0 11px #00aaff50,2px 0 11px #ff750025}
.poetry-total span{font-family:Oswald,sans-serif;font-size:12px;letter-spacing:.035em;color:#bbcbd5}
.poetry-toolbar{position:sticky;top:-18px;z-index:3;background:#040b10f7;padding:18px 3px 13px;display:flex;align-items:center;gap:18px;border-bottom:1px solid #28414f}
.poetry-search-box{display:flex;align-items:center;flex:1;min-width:0;gap:12px;padding:0 12px;border:1px solid #4a7386;background:linear-gradient(120deg,#061521,#03080c);box-shadow:inset 2px 0 8px #009cff16}
.poetry-search-box:focus-within{border-color:#49ceff;box-shadow:0 0 0 1px #49ceff33}
.poetry-search-box>svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:#9fc9df;stroke-width:1.6;stroke-linecap:round}
#poetrySearch{width:100%;min-width:0;flex:1;background:transparent;border:0;color:#edf6fc;padding:13px 0;font-size:16px;line-height:1.5;outline:none}
#poetrySearch::placeholder{color:#91a9b9}#poetrySearch::-webkit-search-cancel-button{display:none}
#poetryClear{width:28px;height:30px;flex-basis:28px;font-size:14px}
.poetry-library .poetry-count{font-family:Oswald,sans-serif;color:#aebfcc;font-size:12px;line-height:1.5;letter-spacing:.02em;margin:0;white-space:nowrap}
.poetry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:20px 3px 8px}
.poem-card{min-width:0;position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:20px 20px 15px;border:1px solid #57778a;border-left-color:#42bcec;border-right-color:#b77846;background:linear-gradient(125deg,#09202dce,#050b11ed 42%,#15100bec);box-shadow:inset 2px 0 7px #009cff26,inset -2px 0 7px #ff68001a,0 4px 10px #0006;transition:border-color .16s,box-shadow .16s}
.poem-card::before{content:'';position:absolute;top:0;left:16px;right:16px;height:2px;background:linear-gradient(90deg,#57d3ff,#3e687c 35%,#815030 75%,#ff9d42);opacity:.6}
.poem-card:hover{border-color:#8adfff;border-right-color:#ffb365;box-shadow:inset 2px 0 12px #009cff35,inset -2px 0 12px #ff680029,0 0 12px #008dff25}
.poem-card:focus-visible{outline:2px solid #68d6ff;outline-offset:1px}
.poem-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.poem-number{font-family:Oswald,sans-serif;font-size:19px;font-weight:400;letter-spacing:.08em;color:#61c6ee;line-height:1}
.poem-release-tag{color:#d7b38e;font-family:Oswald,sans-serif;font-size:10px;letter-spacing:.06em;text-transform:uppercase;line-height:1.4}.poem-release-tag span{color:#ffa757;margin-right:3px}
.poem-card-rule{width:30px;height:1px;background:linear-gradient(90deg,#61707a,#ff9b3d)}
.poem-card-title{font-family:Oswald,'Arial Narrow',sans-serif;font-size:23px;font-weight:400;line-height:1.25;text-transform:uppercase;color:#e6eef4;overflow-wrap:anywhere;min-height:2.5em}
.poem-card-excerpt{margin-top:12px;color:#aebdca;font-size:12px;font-weight:400;line-height:1.75;white-space:pre-line;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:5.25em;max-height:5.25em}
.poem-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:19px;padding-top:11px;border-top:1px solid #344957;color:#c2e9fd;font-family:Oswald,sans-serif;text-transform:uppercase;font-size:12px;letter-spacing:.08em;line-height:1.5}.poem-card-bottom span:last-child{font-size:19px;line-height:1;color:#ffb474}
.poetry-library .poetry-original-note{margin:20px 4px 2px;color:#859aaa;font-size:11px;line-height:1.7}
.poetry-empty{grid-column:1/-1;padding:38px 15px 52px;text-align:center}.poetry-empty-mark{font-size:43px;line-height:1;color:#5ebfea}.poetry-empty h4{font-family:Oswald,sans-serif;font-size:25px;font-weight:400;line-height:1.3;margin:15px 0 10px;color:#dbe9f3}.poetry-empty p{font-size:14px;color:#9cb3c3;margin:0 auto!important}.poetry-empty .neon-button{margin:23px auto 0}
.poem-toolbar{position:sticky;top:-18px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:67px;padding:12px 8px;background:#040b10fa;border-bottom:1px solid #3c5b6d}
.poem-back{display:flex;align-items:center;gap:10px;white-space:normal;text-align:left;line-height:1.5;color:#c4dce9;font-size:13px;padding:6px 0}.poem-back::after{display:none}
.poem-pagination{display:flex;align-items:center;gap:9px;flex-shrink:0}.poem-pagination>span{font-family:Oswald,sans-serif;font-size:12px;min-width:47px;text-align:center;color:#a9bccb;font-variant-numeric:tabular-nums}.poem-pagination .icon-button{width:35px;height:32px;flex-basis:35px;border:1px solid #52738a;border-radius:0;background:linear-gradient(#112230,#03070b);font-size:20px}.poem-pagination .icon-button:last-child{border-color:#846343}
.poem-reader{position:relative;max-width:790px;margin:22px auto 0;padding:33px 40px 26px;background:linear-gradient(120deg,#071721d6,#03090deb 35%,#0c0a08e6);border:1px solid #344957;border-left-color:#2584b1;border-right-color:#8d532c;box-shadow:inset 2px 0 12px #009bff16,inset -2px 0 12px #ff6c0010}
.poem-heading{padding-bottom:0}.poem-heading h3{font-size:clamp(32px,4vw,46px);overflow-wrap:anywhere}.poem-heading h3:focus-visible{outline:none;text-shadow:0 0 12px #008dff66}
.poem-heading-rule{height:1px;margin-top:22px;background:linear-gradient(90deg,#66d8ff,#305f78 42%,#6b4128 77%,#ff994e);box-shadow:0 0 7px #009fff2e}
.poem-reading-tools{display:flex;align-items:center;justify-content:space-between;gap:17px;margin:14px 0 28px}.poem-original-label{font-size:11px;line-height:1.6;color:#90a6b6}
.poem-font-tools{display:flex;gap:5px;flex-shrink:0}.poem-font-tools button{width:34px;height:33px;padding:0;border:1px solid #435e71;background:#09141c;color:#c9e6f7;font-size:13px;line-height:1}.poem-font-tools button:hover:not(:disabled){border-color:#64cafd;background:#102739}
.poem-versions{display:flex;flex-wrap:wrap;gap:7px}.poem-versions button{font-family:Oswald,sans-serif;padding:6px 10px;line-height:1.5;font-size:13px;border:1px solid #365466;background:#071018;color:#a8c2d1}.poem-versions button[aria-pressed=true]{border-color:#bd7743;background:linear-gradient(#452611,#211306);color:#ffe1c4;box-shadow:inset 0 0 7px #ff742025}
.poem-body{font-family:Arial,Helvetica,sans-serif;font-size:var(--reading-size,18px);line-height:1.9;color:#e3eaf0;letter-spacing:.005em;overflow-wrap:anywhere}
.poem-body .poem-stanza{white-space:pre-wrap;font-size:inherit;line-height:inherit;max-width:none;margin:0}.poem-body .poem-stanza+.poem-stanza{margin-top:1.1em}.poem-body-lines .poem-stanza+.poem-stanza{margin-top:.18em}
.poem-end{display:flex;align-items:center;gap:12px;max-width:150px;margin:34px 0 27px}.poem-end span{height:1px;flex:1;background:linear-gradient(90deg,#3987b0,#526878)}.poem-end span:last-child{background:linear-gradient(90deg,#526878,#c47838)}.poem-end i{display:block;width:6px;height:6px;transform:rotate(45deg);background:#c9b18b;box-shadow:0 0 6px #ff9b3033}
.poem-footer{display:flex;align-items:center;justify-content:space-between;gap:23px;border-top:1px solid #344653;padding-top:20px}.poem-signature{font-family:Oswald,sans-serif;font-size:19px;line-height:1.3;color:#b9c9d4}.poem-signature small{display:block;margin-top:5px;font-family:Arial,sans-serif;font-size:8px;letter-spacing:.14em;color:#8198a9}.poem-links{display:flex;align-items:flex-end;flex-direction:column;gap:15px;min-width:0}.poem-links .neon-button{font-size:12px;gap:11px;line-height:1.6;max-width:100%;text-align:left}.poem-links .text-button{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5}
@media(max-width:850px){.poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.poem-reader{padding:29px 28px}.poetry-intro{padding-inline:11px}}
@media(max-width:540px){
 .content-dialog[data-view="lyrics"]{width:calc(100% - 18px);height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);padding:22px 19px}
 .content-dialog[data-view="lyrics"] .modal-body{padding:12px 2px 4px}
 .poetry-intro{align-items:flex-start;gap:13px;padding:10px 1px 22px}.poetry-library .poetry-eyebrow{font-size:10px;letter-spacing:.07em;margin-bottom:10px}.poetry-eyebrow span{padding-inline:3px}
 .poetry-intro h3{font-size:28px}.poetry-library .poetry-description{font-size:12px;line-height:1.65;margin-top:10px}.poetry-total{flex-basis:66px;min-height:79px;margin-top:27px}.poetry-total strong{font-size:38px}.poetry-total span{font-size:9px}
 .poetry-toolbar{top:-12px;display:block;padding:13px 1px 11px}.poetry-search-box{gap:9px;padding-inline:9px}.poetry-library .poetry-count{margin:8px 0 0;font-size:11px}
 #poetrySearch{font-size:16px;padding:11px 0}.poetry-search-box>svg{width:17px;height:17px;flex-basis:17px}
 .poetry-grid{grid-template-columns:1fr;gap:14px;padding:16px 2px 4px}.poem-card{padding:17px 19px 14px}.poem-card-top{margin-bottom:12px}.poem-card-title{font-size:24px;min-height:0}.poem-card-excerpt{font-size:13px;line-height:1.7;min-height:0;max-height:5.1em;margin-top:10px}.poem-card-bottom{margin-top:14px}
 .poem-toolbar{top:-12px;gap:8px;padding:9px 1px;min-height:61px}.poem-back{font-size:12px;gap:7px}.poem-pagination{gap:5px}.poem-pagination>span{min-width:39px;font-size:11px}.poem-pagination .icon-button{width:29px;height:30px;flex-basis:29px;font-size:18px}
 .poem-reader{margin-top:14px;padding:23px 17px 22px}.poem-heading h3{font-size:31px}.poem-heading-rule{margin-top:18px}.poem-reading-tools{gap:11px;flex-wrap:wrap;margin:12px 0 23px}.poem-original-label{max-width:calc(100% - 84px);font-size:10px}.poem-font-tools{margin-left:auto}.poem-versions button{font-size:12px;padding:6px 8px}
 .poem-body{line-height:1.8}.poem-footer{align-items:flex-start;flex-direction:column;gap:20px}.poem-links{align-items:flex-start;width:100%}.poem-links .neon-button{gap:8px}.poem-signature{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.poem-card{transition:none}}


/* V28: make opening a poem feel smoother while keeping the whole text visible at once. */
.poem-reader{animation:poemReaderReveal .34s ease both}
.poem-body{animation:poemBodyReveal .42s ease .06s both;transform-origin:top center}
@keyframes poemReaderReveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes poemBodyReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.poem-reader,.poem-body{animation:none}}
