/* 작품 상세 윗부분: 표지 + 한 줄 정보 · 제목 · 작가 · 숫자 한 줄 · 소개 3줄 · 버튼 */
body.editorial .alona-detail .alona-hero-panel.wd-hero{display:grid!important;grid-template-columns:200px minmax(0,1fr);gap:36px;align-items:start;padding:32px!important;background:#fff!important;border:1px solid #E8E8EC!important;border-radius:20px!important;box-shadow:0 8px 28px rgba(17,19,24,.05)!important}
body.editorial .alona-detail .wd-hero:before,body.editorial .alona-detail .wd-hero:after{display:none!important}
body.editorial .alona-detail .wd-cover{min-width:0}
body.editorial .alona-detail .wd-cover .alona-book-cover{width:100%!important;max-width:100%!important;margin:0!important;border-radius:12px;overflow:hidden;box-shadow:0 10px 26px rgba(17,19,24,.16)}
.wd-cover .alona-book-cover img,.wd-cover .alona-book-cover>*{display:block;width:100%}
.wd-main{min-width:0;display:flex;flex-direction:column}

/* 한 줄 정보: 장르 · 연재 · 총 N화 · 이용가 (+ 선독점/독점 표시) */
.wd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;font-size:13px;color:#7A7F8F;line-height:1.5}
.wd-meta b{color:#FF3D5E;font-weight:700}
.wd-meta i{font-style:normal;color:#C9CBD3}
.wd-badge{margin-left:4px;padding:2px 8px;border-radius:999px;background:#FFF0F3;color:#E0244A;font-size:12px;font-weight:700}

body.editorial .alona-detail .wd-title{margin:0;font-size:30px!important;line-height:1.3!important;font-weight:800!important;letter-spacing:-.02em;color:#1C1D22!important;overflow-wrap:anywhere}
body.editorial .alona-detail .wd-author{display:flex;align-items:center;gap:10px;margin:10px 0 0}
body.editorial .alona-detail .wd-author .alona-author-follow{min-height:30px;padding:0 12px;font-size:12px}

/* 숫자 한 줄: 아이콘 + 이름 + 숫자 */
body.editorial .alona-detail .wd-hero .alona-metrics{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px 18px!important;margin:16px 0 0!important;padding:0!important;border:0!important;background:none!important;grid-column:auto!important;width:auto!important}
body.editorial .alona-detail .wd-hero .alona-metrics>div{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;flex:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;text-align:left!important}
body.editorial .alona-detail .wd-hero .alona-metric-icon{display:inline-flex!important;align-items:center;justify-content:center;width:16px!important;height:16px!important;margin:0!important;padding:0!important;border-radius:0!important;background:none!important;color:#9A9EAA!important}
body.editorial .alona-detail .wd-hero .alona-metric-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
body.editorial .alona-detail .wd-hero .alona-metrics dt{margin:0!important;font-size:13px!important;color:#7A7F8F!important;font-weight:400!important}
body.editorial .alona-detail .wd-hero .alona-metrics dd{margin:0!important;font-size:14px!important;line-height:1.4!important;color:#1C1D22!important;font-weight:700!important}

/* 소개: 3줄까지, 길면 더보기 */
.wd-synopsis-box{margin:18px 0 0;padding:14px 16px;border-radius:12px;background:#F6F6F8}
body.editorial .alona-detail .wd-synopsis{margin:0!important;font-size:14px!important;line-height:1.75!important;color:#3A3E4A!important;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.editorial .alona-detail .wd-synopsis.open{display:block;-webkit-line-clamp:unset}
.wd-more{margin-top:6px;padding:0;border:0;background:none;color:#7A7F8F;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.wd-more[hidden]{display:none}

/* 버튼: 읽기(크게) + 선호작(책갈피) */
body.editorial .alona-detail .wd-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;margin:20px 0 0!important}
body.editorial .alona-detail .wd-actions .alona-primary{width:100%;min-height:52px!important;border-radius:12px!important;font-size:16px!important}
body.editorial .alona-detail .wd-actions .alona-favorite{min-height:52px!important;padding:0 18px!important;border-radius:12px!important;gap:6px}
body.editorial .alona-detail .wd-actions .alona-favorite:before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
body.editorial .alona-detail .wd-actions .alona-favorite[aria-pressed="true"]:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}

/* 작가에게만 보이는 관리 줄 */
body.editorial .alona-detail .alona-owner-tools{margin-top:12px!important;border-radius:14px!important}

/* 휴대폰: 작은 표지 옆에 정보·제목·작가, 나머지는 아래 전체 폭 */
@media(max-width:700px){
 body.editorial .alona-detail .alona-hero-panel.wd-hero{grid-template-columns:96px minmax(0,1fr);gap:14px 16px;padding:18px!important;border-radius:16px!important}
 .wd-main{display:contents}
 .wd-meta,.wd-title,.wd-author{grid-column:2}
 .wd-meta{margin:0;font-size:12px;align-self:end}
 body.editorial .alona-detail .wd-title{font-size:21px!important}
 body.editorial .alona-detail .wd-author{margin:0;align-self:start}
 .wd-cover{grid-row:1 / span 3}
 body.editorial .alona-detail .wd-hero .alona-metrics,.wd-synopsis-box,body.editorial .alona-detail .wd-actions{grid-column:1 / -1!important;width:auto!important}
 body.editorial .alona-detail .wd-hero .alona-metrics{margin:4px 0 0!important;gap:6px 14px!important}
 .wd-synopsis-box{margin:0}
 body.editorial .alona-detail .wd-actions{margin:0!important}
}

/* 아래(회차 목록·작품 정보)도 위 카드와 같은 폭으로 맞춘다. 넓은 화면에서 끝까지 퍼지지 않게. */
body.editorial .alona-detail>.alona-detail-body{width:calc(100% - 64px);max-width:1120px;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
@media(max-width:700px){body.editorial .alona-detail>.alona-detail-body{width:calc(100% - 36px)}}

/* 공유 버튼 */
body.editorial .alona-detail .wd-actions{grid-template-columns:minmax(0,1fr) auto auto!important}
.wd-share{display:grid;place-items:center;width:52px;min-height:52px;border:1px solid #DDDFE5;border-radius:12px;background:#fff;color:#3A3E4A;cursor:pointer}
.wd-share:hover{border-color:#FF3D5E;color:#E0244A}
.wd-share svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
/* 없는 주소 안내 */
.nf-page{max-width:420px;margin:60px auto;padding:36px 24px;text-align:center;border:1px solid #E8E8EC;border-radius:18px;background:#fff}
.nf-page strong{display:block;font-size:44px;font-weight:900;color:#FF3D5E;letter-spacing:-.03em}
.nf-page h1{margin:6px 0 8px;font-size:21px;font-weight:800;color:#1C1D22}
.nf-page p{margin:0 0 20px;color:#7A7F8F;font-size:14px}
.nf-page div{display:flex;gap:8px;justify-content:center}
