/* ChuotAudio V7.9.1 - Reading pages use the SAME layout and CSS classes as audio pages.
   This file only adapts text-specific widgets; it does NOT define a separate page layout. */
.v791-shared-detail{min-width:0}
.v791-shared-detail>.v791-text-panel{min-width:0}
/* A text novel can have an upright source cover. Crop it into the exact audio banner area.
   Title and details are below the image, so the display does not duplicate the cover title. */
.v791-text-panel .v78-story-landscape-art.v791-text-art .v78-image-main{object-fit:contain!important;object-position:center center;padding:0;z-index:2}
.v791-text-panel .v78-story-landscape-art.v791-text-art .v78-image-blur{opacity:.92;filter:blur(24px) brightness(.52);transform:scale(1.08)}
.v791-text-panel .detail-info>.detail-tags.v77-text-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.v791-text-panel .detail-tags.v77-text-tags span{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid rgba(238,116,166,.28);border-radius:30px;background:rgba(139,65,108,.19);color:var(--pink2,#ff81ad);font-size:11px;line-height:1.3}
.v791-text-panel .detail-stats>span{display:inline-flex;align-items:center;gap:6px}
.v791-text-panel .detail-actions .v783-favorite-form{margin:0}
.v791-text-panel .detail-actions .v783-favorite{min-height:40px}
/* Keep chapter list markup and styling aligned with audio while retaining read-state JS. */
.v791-text-rail{min-width:0}
.v791-text-panel .v78-story-landscape{background:radial-gradient(circle at 50% 22%,rgba(76,121,205,.28),transparent 42%),#0c162a}.v791-text-panel .v78-story-landscape-art{display:block;width:100%;height:100%}.v791-text-panel .v78-story-landscape-art:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,11,23,.18),rgba(7,11,23,.38));z-index:1;pointer-events:none}.v791-text-rail .v66-chapter-scroll{max-height:300px!important;min-height:0}
.v791-text-rail .chapter-link.v783-chapter-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;padding:11px 10px;min-height:54px;line-height:1.35}
.v791-text-rail .chapter-link.v783-chapter-row>span{flex:1 1 90%;min-width:0;display:flex;align-items:center;gap:5px;font-size:12px;overflow-wrap:anywhere}
.v791-text-rail .chapter-link.v783-chapter-row>.chapter-date{font-size:10px;white-space:normal;margin-left:20px}
.v791-text-rail .chapter-link.v783-chapter-row>.ico:last-child{display:none}
.v791-text-rail .chapter-link.v783-chapter-row.is-read{background:rgba(24,114,84,.15);border-color:rgba(54,190,129,.42)}
.v791-text-rail .v783-rail-panel{padding:17px;min-width:0;margin:0;border-radius:18px;border:1px solid var(--edge,#30405c);background:var(--panel,#152038)}
.v791-text-rail .v783-rail-panel+.v783-rail-panel{margin-top:0}
.v791-text-rail .v783-rail-panel .v783-rail-story{min-width:0}
.v791-text-rail .v783-rail-panel .v783-rail-story img{width:105px;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;flex:none}
.v791-text-detail .v783-description{grid-column:1;min-width:0;margin:0;padding:20px 24px}
.v791-text-detail .v783-description h2{font-size:20px}
html[data-theme="light"] .v791-text-panel .detail-tags.v77-text-tags span{background:#f5eaf0;border-color:#f1c6d6;color:#9d2752}
html[data-theme="light"] .v791-text-rail .chapter-link.v783-chapter-row.is-read{background:#e7f7ec;border-color:#a4d3bb}
@media(max-width:1020px){.v791-text-detail .v791-text-rail{position:static!important;grid-column:1;grid-row:auto}}
@media(max-width:650px){
 .v791-text-panel .v78-story-landscape-art.v791-text-art .v78-image-main{object-position:center center}
 .v791-text-panel .detail-actions{gap:8px}
 .v791-text-panel .detail-actions>a,.v791-text-panel .detail-actions>button,.v791-text-panel .detail-actions>form{flex:1 1 140px;min-width:0}
 .v791-text-panel .detail-actions form button{width:100%}
 .v791-text-detail .v783-description{padding:17px}
 .v791-text-rail .v66-chapter-scroll{max-height:285px!important}
}
