/* ChuotAudio V7.8.3 — portrait text book cards, shared audio/text visual language and favorite state. */
.v783-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,335px);gap:20px;align-items:start}
.v783-main-column,.v783-story-sidebar{min-width:0;display:grid;gap:20px;align-content:start}
.v783-text-hero{display:grid;grid-template-columns:clamp(155px,22%,235px) minmax(0,1fr);gap:26px;min-width:0;padding:27px;border-radius:20px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 13% 80%,rgba(183,54,89,.16),transparent 56%),var(--panel)}
.v783-cover-box{grid-column:1;grid-row:1 / span 2;position:relative;aspect-ratio:3/4;overflow:hidden;border:1px solid rgba(246,105,156,.37);border-radius:15px;background:#151e32;box-shadow:0 15px 35px #0005;align-self:start}
.v783-cover-box img{width:100%;height:100%;object-fit:cover;object-position:50% 50%;display:block}
.v783-hero-info{min-width:0;align-self:center}
.v783-hero-info h1{color:var(--ink);font-size:clamp(25px,2.65vw,39px);line-height:1.23;overflow-wrap:anywhere;margin:13px 0}
.v783-teaser{font-size:13px;line-height:1.85;color:var(--muted);margin:7px 0 14px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.v783-author{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:13px;margin:14px 0}
.v783-author strong{color:var(--pink2)}
.v783-hero-info .detail-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:13px 0}
.v783-hero-info .detail-tags span{background:rgba(156,77,135,.14);border:1px solid rgba(225,91,147,.25);color:var(--pink2);font-size:11px;padding:6px 10px;border-radius:100px}
.v783-info-stats{display:flex;align-items:center;flex-wrap:wrap;gap:9px 17px;font-size:12px;color:var(--muted);margin:18px 0}
.v783-info-stats>span{display:inline-flex;align-items:center;gap:6px}
.v783-info-stats .ico{width:15px;height:15px}
.v783-actions{grid-column:2;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}
.v783-actions :is(.btn,.btn-outline){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;line-height:1.2;text-align:center}
.v783-favorite-form{margin:0;display:flex}
.v783-soon{color:var(--muted);font-size:12px}
.v783-favorite,.v783-story-panel .v783-favorite{border-radius:11px;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;cursor:pointer}
.v783-favorite.is-favorited,.v783-audio-favorite.is-favorited{background:linear-gradient(130deg,rgba(244,59,105,.28),rgba(160,50,112,.19))!important;border-color:var(--pink,#f43b69)!important;color:var(--pink2,#ff739b)!important;box-shadow:inset 0 0 0 1px rgba(255,132,178,.22),0 5px 17px rgba(244,59,105,.09)}
.v783-favorite.is-favorited .ico,.v783-audio-favorite.is-favorited .ico{color:var(--pink,#f43b69);fill:currentColor}
.v783-favorite:is(:hover,:focus-visible).is-favorited,.v783-audio-favorite:is(:hover,:focus-visible).is-favorited{box-shadow:0 0 0 3px rgba(255,114,156,.16)}
.v783-description{padding:24px 26px;border-radius:18px}
.v783-description h2{display:flex;align-items:center;gap:9px;font-size:19px;margin:0 0 16px}
.v783-description h2 .ico{color:var(--pink);width:21px;height:21px}
.v783-description .v75-intro-body{line-height:1.9;color:var(--muted);overflow-wrap:anywhere}
.v783-story-sidebar>.panel{margin:0;border-radius:19px;min-width:0}
.v783-chapter-panel,.v783-rail-panel{padding:18px}
.v783-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:15px}
.v783-rail-heading :is(h2,h3){display:flex;gap:7px;align-items:center;min-width:0;font-size:clamp(15px,1.35vw,17px);margin:0;color:var(--ink)}
.v783-rail-heading small{font-size:12px;color:var(--muted)}
.v783-rail-heading>a{color:var(--muted);font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;gap:2px}
.v783-rail-heading>a:hover{color:var(--pink2)}
.v783-rail-heading .ico{color:var(--pink);width:17px;height:17px}
.v783-chapter-search input{width:100%;background:var(--panel2);border:1px solid var(--line);border-radius:11px;color:var(--ink);min-height:42px;padding:10px 12px;box-sizing:border-box;margin:0 0 10px;font-size:12px}
.v783-chapter-scroll{max-height:315px;overflow:auto;overscroll-behavior:contain;display:grid;gap:7px;scrollbar-width:thin;scrollbar-color:var(--pink) transparent;padding-right:3px}
.v783-chapter-row{display:flex;align-items:center;gap:9px;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);min-width:0;text-decoration:none;color:var(--ink)}
.v783-chapter-row:hover{border-color:var(--pink);background:rgba(244,59,105,.07)}
.v783-chapter-row>span{display:grid;gap:5px;min-width:0;flex:1}
.v783-chapter-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.v783-chapter-row small{font-size:10px;color:var(--muted)}
.v783-chapter-row>.ico{width:17px;height:17px;flex:none;color:var(--pink)}
.v783-chapter-row>.ico:last-child{color:var(--muted);width:13px}
.v783-rail-story{display:flex;align-items:center;gap:11px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:8px;margin-bottom:7px;color:var(--ink);text-decoration:none;min-width:0}
.v783-rail-story:hover{border-color:var(--pink)}
.v783-rail-story img{width:61px;aspect-ratio:3/4;object-fit:cover;object-position:center;border-radius:8px;flex:none;background:#1a243a}
.v783-rail-story>span{display:grid;gap:6px;flex:1;min-width:0}
.v783-rail-story strong{font-size:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.v783-rail-story small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v783-rail-story>.ico{width:14px;color:var(--muted);flex:none}
.v783-empty-hint,.v783-search-empty{color:var(--muted);font-size:12px;line-height:1.6}
/* Library: force an actual vertical cover crop even if the uploaded source is landscape. */
.v74-text-library .v74-text-card img,.v74-text-library .v783-text-card img{width:112px!important;height:auto!important;max-height:none!important;aspect-ratio:3/4!important;object-fit:cover!important;object-position:center!important;display:block;align-self:flex-start;flex:none;border-radius:12px}
.v74-text-library .v74-text-card,.v74-text-library .v783-text-card{align-items:flex-start;min-width:0;gap:16px}
.v74-text-library .v74-text-card>div{min-width:0}
.v74-text-library .v74-text-card h2{overflow-wrap:anywhere}
html[data-theme="light"] .v783-text-hero{background:radial-gradient(ellipse at 16% 80%,rgba(230,86,141,.09),transparent 62%),#fff}
html[data-theme="light"] .v783-cover-box{background:#f2eef5;box-shadow:0 12px 28px #28314625}
html[data-theme="light"] .v783-favorite.is-favorited,html[data-theme="light"] .v783-audio-favorite.is-favorited{background:#ffdeec!important;color:#9f2457!important;border-color:#e84c82!important}
@media(max-width:1080px){.v783-detail-layout{grid-template-columns:minmax(0,1fr) 270px;gap:13px}.v783-text-hero{grid-template-columns:150px minmax(0,1fr);gap:16px;padding:18px}.v783-story-sidebar>.panel{padding:14px}}
@media(max-width:900px){.v783-detail-layout{grid-template-columns:1fr}.v783-story-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v783-story-sidebar .v783-chapter-panel{grid-column:1/-1}.v783-chapter-scroll{max-height:285px}}
@media(max-width:600px){.v783-text-hero{grid-template-columns:110px minmax(0,1fr);gap:13px;padding:13px}.v783-hero-info h1{font-size:21px;margin:8px 0}.v783-teaser{-webkit-line-clamp:3;font-size:12px;margin:5px 0}.v783-hero-info .detail-tags{margin:10px 0}.v783-info-stats{gap:5px 9px;margin:10px 0}.v783-actions{grid-column:1/-1;grid-row:2;gap:7px;margin-top:13px}.v783-actions :is(.btn,.btn-outline),.v783-favorite-form{flex:1 1 100%;width:100%}.v783-story-sidebar{grid-template-columns:1fr}.v783-description{padding:18px}.v74-text-library .v74-text-card img,.v74-text-library .v783-text-card img{width:98px!important}.v783-detail .breadcrumb{font-size:11px}.v783-text-hero{grid-template-columns:110px minmax(0,1fr)}.v783-hero-info .v783-actions{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap}}
@media(max-width:400px){.v783-text-hero{grid-template-columns:94px minmax(0,1fr)}.v783-hero-info h1{font-size:19px}.v783-cover-box{border-radius:11px}.v74-text-library .v74-text-card img{width:82px!important}.v783-info-stats{font-size:11px}}
@media(prefers-reduced-motion:reduce){.v783-favorite{transition:none!important}}
.v783-chapter-row[hidden],.v783-search-empty[hidden]{display:none!important}
.v783-chapter-row.is-read{background:rgba(24,114,84,.15);border-color:rgba(54,190,129,.42)}
.v783-chapter-row.is-read>.ico:first-child{color:#47c590}
html[data-theme="light"] .v783-chapter-row.is-read{background:#e7f7ec;border-color:#a4d3bb}
@media(max-width:600px){.v783-text-hero>.v783-cover-box{grid-column:1;grid-row:1}.v783-text-hero>.v783-hero-info{grid-column:2;grid-row:1}.v783-text-hero>.v783-actions{grid-column:1/-1;grid-row:2}}
