:root{font-family:Inter,Noto Sans Thai,system-ui,-apple-system,sans-serif;color:#27243c;background:#f9f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3{line-height:1.35}.header{position:sticky;top:0;z-index:10;background:#fffcfaef;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid #e9e4eb}.topbar{max-width:1180px;padding:14px 24px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:9px;font-weight:850;font-size:23px;color:#4f46e5;white-space:nowrap}.topbar nav{display:flex;gap:5px;align-items:center}.topbar nav a{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;font-size:14px;font-weight:650;color:#69657c}.topbar nav a.active,.topbar nav a:hover{background:#eeeafd;color:#4f46e5}.container{max-width:1180px;margin:auto;min-height:calc(100vh - 160px);padding:30px 24px 70px}.hero{min-height:310px;border-radius:25px;background:radial-gradient(ellipse at 85% 15%,#998aef 0,transparent 40%),linear-gradient(120deg,#363099,#6657d2);color:#fff;padding:43px 50px;box-shadow:0 18px 42px #4633a91f}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#d8d3ff}.eyebrow.dark{color:#7970bd}.hero h1{font-size:clamp(30px,4vw,47px);margin:13px 0}.hero p{line-height:1.8;color:#eae7ff}.hero-button,.btn{display:inline-flex;align-items:center;justify-content:center;background:#4f46e5;border:0;color:#fff;border-radius:11px;padding:12px 18px;font-weight:700}.hero-button{background:#fff;color:#4338ca;margin-top:15px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:32px 0 16px}.section-heading h1,.section-heading h2{margin:5px 0}.count{color:#777389}.filters{display:flex;gap:10px;margin:0 0 20px}.filters input{max-width:380px}.filters select{max-width:180px}input,textarea,select{background:#fff;color:inherit;border:1px solid #dfd9e8;border-radius:11px;padding:12px;width:100%;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #a8a0eb;outline-offset:1px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:19px}.story{background:#fff;border:1px solid #ebe6ed;border-radius:18px;overflow:hidden;box-shadow:0 8px 23px #231b3a0a;transition:transform .2s,box-shadow .2s}.story:hover{transform:translateY(-4px);box-shadow:0 14px 27px #21163d1b}.cover{height:170px;display:grid;place-items:center;font-size:54px}.story-text{padding:17px}.story-text h3{font-size:18px;margin:10px 0 5px}.story-text small,.muted,.story-text p{color:#777389}.story-text p{font-size:13px;min-height:48px;line-height:1.65}.tag{font-size:12px;display:inline-block;background:#eeebff;color:#4f46e5;padding:5px 10px;border-radius:22px;font-weight:700}.read-cta{font-size:13px;color:#4f46e5;font-weight:800}.footer{text-align:center;color:#89839a;font-size:13px;border-top:1px solid #ece8ec;padding:25px}.novel-banner{margin:19px 0;padding:38px;border-radius:22px;background:linear-gradient(115deg,#4843a5,#9884ce);color:#fff}.novel-banner h1{font-size:clamp(28px,5vw,43px)}.novel-banner p{max-width:680px;line-height:1.9}.novel-banner .tag{background:#fffe}.back{display:inline-block;color:#5c50a5;margin-bottom:12px}.chapter-list,.studio-list{background:#fff;border-radius:17px;border:1px solid #ece7ef}.chapter-row{padding:18px 22px;border-bottom:1px solid #eee9f2;display:flex;align-items:center;justify-content:space-between;gap:15px}.chapter-row:last-child{border:0}.chapter-row:hover{background:#f9f7fd}.chapter-row span:last-child{color:#5c50ac;font-size:13px;white-space:nowrap}.btn-outline,.btn-danger{background:#fff;border:1px solid #dcd7e7;color:#5046a5;border-radius:10px;padding:10px 14px}.btn-danger{color:#c33858;border-color:#f1cbd4}.empty{text-align:center;padding:58px 12px;color:#777389}.panel{max-width:540px;margin:30px auto;background:#fff;border:1px solid #eae5ee;border-radius:20px;padding:30px}.panel.wide{max-width:800px}.panel label{display:block;font-weight:650;margin:15px 0}.panel label input,.panel label textarea,.panel label select{display:block;margin-top:8px}.panel textarea{min-height:110px;resize:vertical}.panel textarea.chapter-editor{min-height:350px;line-height:1.8}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.error{color:#b42348}.success{color:#12715d}.chapter-management{margin-top:15px}.reader-frame{max-width:820px;margin:auto;border-radius:18px;min-height:620px;background:#fff;color:#25243a;box-shadow:0 5px 30px #20163b12}.reader-frame.sepia{background:#f4ead6;color:#4a3b31}.reader-frame.dark{background:#242535;color:#eeedf7}.reader-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 23px;border-bottom:1px solid #9c91b533}.reader-controls>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.reader-controls button{background:transparent;border:1px solid #aea7c555;border-radius:8px;padding:7px 10px;color:inherit}.reader-controls select{width:auto;padding:8px 10px}.reading-body{padding:clamp(22px,5vw,65px)}.reading-body small{opacity:.6}.reading-body h1{margin:10px 0 34px}.reading-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.2;letter-spacing:.02em}.reader-bottom{display:flex;justify-content:space-between;margin-top:60px;border-top:1px solid #a7a0aa44;padding-top:25px}.reader-bottom a{color:#655be0}@media(max-width:700px){.topbar{flex-direction:column;align-items:stretch;padding:12px 14px}.topbar nav{width:100%;justify-content:space-between}.topbar nav a{font-size:12px;gap:4px;padding:8px 5px}.topbar nav a svg{width:15px}.container{padding:16px 14px 60px}.hero{padding:26px 22px;min-height:260px}.hero h1{font-size:30px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cover{height:130px}.story-text{padding:12px}.story-text h3{font-size:15px}.story-text p{font-size:12px}.filters{flex-wrap:wrap}.filters input,.filters select{max-width:none}.panel{padding:20px;margin:12px auto}.chapter-row{padding:14px}.novel-banner{padding:25px}.reader-controls{padding:10px}.reading-body{padding:24px}}
