.ai-hero { display:flex; align-items:center; justify-content:space-between; gap:30px; margin:24px 0; padding:clamp(28px,5vw,64px); border-radius:18px; overflow:hidden; background:radial-gradient(ellipse at 95% 0,#bc92d558,transparent 54%),linear-gradient(120deg,#172447,#2f2b58); color:#fff; }
.ai-hero > div { max-width:740px; }
.ai-hero .eyebrow { color:#c7b2f3; }
.ai-hero h1 { margin:18px 0; font-size:clamp(42px,6vw,76px); letter-spacing:-.055em; line-height:1.04; }
.ai-hero h1 em { font-style:normal; color:#e9b2d4; }
.ai-hero h1 small { display:block; font-size:20px; letter-spacing:-.01em; margin-top:15px; color:#c4b1e2; }
.ai-hero p { color:#d5d6ed; font-size:17px; line-height:1.7; max-width:670px; }
.ai-hero .button { background:linear-gradient(100deg,#ffb794,#d7a9f3); color:#192143; border:0; }
.ai-hero-symbol { font-size:150px; color:#d0b2f1; opacity:.8; padding:10px; }
.ai-rules-link { color:#d5c3ed; font-size:13px; text-decoration:underline; text-underline-offset:5px; }
.ai-genres,.publication-types { display:flex; flex-wrap:wrap; gap:9px; margin:24px 0 34px; }
.ai-genres a,.publication-types a { padding:10px 16px; border:1px solid #dfdff0; border-radius:8px; color:#737a96; background:#fff; font-size:13px; }
.ai-genres a[aria-current],.publication-types a[aria-current] { color:#76528e; border-color:#ceb7e0; background:#f3eafa; }
.ai-empty { grid-column:1/-1; text-align:center; padding:44px 24px; border:1px dashed #d9d7eb; border-radius:13px; }
.ai-empty > span { color:#bd9ed8; font-size:40px; }
.ai-empty h2 { font-size:24px; letter-spacing:-.03em; color:#3d4164; }
.ai-empty p { color:#8c92ab; font-size:14px; }
.ai-empty a { font-size:14px; color:#986aaf; }
.publication-panel { padding:28px 30px; border:1px solid #dce1f3; background:#fff; border-radius:13px; margin-bottom:18px; }
.publication-panel h2 { font-size:24px; letter-spacing:-.035em; margin:9px 0 23px; }
.publication-panel .field small { font-size:12px; color:#8c92a9; font-weight:400; }
.publication-hint { color:#8991a7; font-size:12px; line-height:1.7; }
.cover-upload { display:flex; align-items:flex-start; gap:23px; }
.cover-upload > div { flex:1; min-width:0; }
.cover-upload-current { flex:0 0 100px; width:100px; height:150px; object-fit:cover; border-radius:6px; }
.publication-rules { padding:23px 27px; border:1px solid #eadfeb; border-radius:11px; background:#fbf7fc; margin:22px 0; color:#675c78; }
.publication-rules strong { font-size:15px; }
.publication-rules p { font-size:13px; line-height:1.8; margin-bottom:0; }
.publication-agreement { display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.6; margin-top:18px; }
.publication-agreement input { width:17px; height:17px; flex:0 0 17px; margin-top:2px; accent-color:#a77fbd; }
.ai-disclosure { padding:12px 14px; border-left:3px solid #c7b1dc; border-radius:6px; background:#fffffff0; margin:22px 0 0; font-size:12px; color:#7e728f; line-height:1.8; }
.ai-disclosure > span { display:inline-block; padding:2px 8px; margin-right:6px; border:1px solid #dac9e8; border-radius:5px; background:#f5edfc; color:#9769a8; }
.story-detail.has-story-cover { display:grid; grid-template-columns:210px minmax(0,1fr); column-gap:34px; }
.story-main-cover { width:210px; height:315px; object-fit:cover; border-radius:9px; box-shadow:0 13px 30px #1e254329; }
.story-intro-copy { min-width:0; }
.story-detail.has-story-cover h1 { font-size:clamp(34px,4.5vw,55px); }
.story-detail.has-story-cover .rating-overview { grid-column:1/-1; }
.story-detail .rating-overview.ai-rating-overview { grid-template-columns:repeat(3,minmax(0,1fr)); }
.story-card-shell { display:flex; align-items:flex-start; gap:20px; position:relative; z-index:1; height:100%; }
.story-card-cover { width:76px; flex:0 0 76px; margin-top:3px; }
.story-card-cover img { display:block; width:76px; height:114px; object-fit:cover; border-radius:5px; box-shadow:0 5px 13px #24274422; }
.story-card-content { display:flex; flex:1; flex-direction:column; height:100%; min-width:0; }
.story-card.with-cover .story-card-top { flex-wrap:wrap; gap:6px; }
.story-card.with-cover h3 { font-size:21px; }
.ai-home { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:22px; margin:38px 0; padding:30px 34px; border:1px solid #dfd9ee; border-radius:14px; background:linear-gradient(110deg,#fff2ec,#f0eafa); }
.ai-home > div { max-width:740px; }
.ai-home h2 { margin:8px 0; font-size:30px; letter-spacing:-.04em; }
.ai-home p { color:#80768d; font-size:14px; line-height:1.7; margin:0; }
.ai-home .button { white-space:nowrap; }
@media(max-width:700px) {
 .ai-hero { padding:30px 24px; }
 .ai-hero-symbol { display:none; }
 .ai-hero p { font-size:15px; }
 .ai-hero .hero-actions { flex-wrap:wrap; }
 .story-detail.has-story-cover { grid-template-columns:minmax(0,1fr); }
 .story-main-cover { width:144px; height:216px; margin:0 0 24px; }
 .story-detail.has-story-cover h1 { font-size:34px; }
 .publication-panel { padding:24px 20px; }
 .cover-upload { flex-direction:column; }
 .publication-rules { padding:22px 20px; }
 .ai-home { padding:25px; }
 .ai-genres a { padding:8px 12px; font-size:12px; }
}

@media(max-width:600px){.story-detail .rating-overview.ai-rating-overview{grid-template-columns:1fr;}}

/* Story description and responsive cover interaction. */
.story-detail .lead { color:#101936; font-weight:500; font-size:19px; }
.story-cover-button { display:block; width:210px; height:315px; padding:0; margin:0; border:0; border-radius:9px; background:transparent; cursor:zoom-in; align-self:start; }
.story-cover-button .story-main-cover { display:block; width:100%; height:100%; margin:0; transition:transform 180ms ease,box-shadow 180ms ease; transform-origin:center; }
.story-cover-button.is-zoomed { cursor:zoom-out; }
.story-cover-button.is-zoomed .story-main-cover { transform:scale(1.05); box-shadow:0 16px 34px #1e25433d; }
.story-cover-button:focus-visible { outline:3px solid #b994d1; outline-offset:7px; }
@media(hover:hover) and (pointer:fine) {
 .story-cover-button:hover .story-main-cover { transform:scale(1.05); box-shadow:0 16px 34px #1e25433d; }
}
@media(max-width:900px) { .story-detail .lead { font-size:17px; } }
@media(max-width:700px) { .story-cover-button { width:144px; height:216px; margin-bottom:24px; } }
@media(max-width:600px) { .story-detail .lead { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .story-cover-button .story-main-cover { transition:none; } }

/* Mobile cover preview stays outside the story layout. */
html.cover-preview-open { overflow:hidden; }
.cover-preview { position:fixed; inset:0; width:max-content; max-width:90vw; max-height:calc(100vh - 80px); max-height:calc(100dvh - 80px); margin:auto; padding:0; border:0; overflow:visible; background:transparent; color:#fff; }
.cover-preview::backdrop { background:rgba(16,25,54,.84); }
.cover-preview-image { display:block; width:80vw; padding:0; border:0; background:transparent; cursor:zoom-out; }
.cover-preview-image img { display:block; width:100%; height:auto; max-height:min(82vh,calc(100vh - 110px)); max-height:min(82dvh,calc(100dvh - 110px)); object-fit:contain; border-radius:9px; }
.cover-preview-close { position:absolute; right:0; top:-44px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff70; border-radius:50%; background:#101936; color:#fff; font-size:27px; line-height:1; }
