@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#090a11;--surface:#141622;--border:#2a2d3d;--text:#f5f5fb;--muted:#999fb1;--pink:#ff5a99;--purple:#937bff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px 'DM Sans',system-ui,sans-serif;line-height:1.55}body:before{content:'';position:fixed;inset:0;z-index:-2;background:radial-gradient(ellipse at 78% 0%,#211831 0%,transparent 36%),radial-gradient(ellipse at 0% 40%,#101726 0%,transparent 44%)}.ambient-glow{position:fixed;pointer-events:none;z-index:-1;right:-180px;top:130px;width:430px;height:430px;background:#7a2b77;filter:blur(180px);opacity:.12}a{text-decoration:none;color:inherit}h1,h2,h3{font-family:'Space Grotesk',system-ui,sans-serif;letter-spacing:-.04em}h1{font-size:clamp(2.2rem,4.5vw,4rem);line-height:1.08}h2{font-size:1.48rem;margin:0 0 22px}p,small{color:var(--muted)}.site-header{position:sticky;top:0;z-index:10;background:#0d0e17eb;backdrop-filter:blur(18px);border-bottom:1px solid #292a38;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px max(20px,calc((100vw - 1280px)/2))}.brand{font:800 24px 'Space Grotesk',sans-serif;letter-spacing:-.075em;white-space:nowrap}.brand span:not(.brand-icon){color:var(--pink)}.brand-icon{display:inline-grid;place-items:center;margin-right:10px;background:linear-gradient(135deg,var(--pink),var(--purple));border-radius:11px;width:36px;height:36px;color:white;letter-spacing:0}.site-header nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.site-header nav a{color:#b7b8c8;font-size:14px;font-weight:700;transition:color .2s}.site-header nav a:hover{color:white}.site-header nav .nav-admin{background:#272035;border:1px solid #6a3d6c;padding:10px 15px;border-radius:11px;color:#ffd4e5}main{max-width:1280px;min-height:calc(100vh - 180px);margin:auto;padding:42px 22px 90px}footer{text-align:center;border-top:1px solid var(--border);padding:36px 20px}footer .brand{font-size:18px}.hero{border:1px solid #573453;background:linear-gradient(120deg,#281a38e9,#161b2ee9),radial-gradient(circle at 75% 55%,#5b2c64,transparent 50%);border-radius:26px;padding:65px 55px;position:relative;overflow:hidden;box-shadow:0 22px 80px #0005}.hero:after{content:'✦';position:absolute;right:8%;top:-75px;font-size:340px;color:#ffffff09;pointer-events:none}.hero h1{max-width:650px;margin:0}.hero p{font-size:17px}.hero form{display:flex;max-width:680px;gap:10px;position:relative;z-index:1;margin-top:28px}.hero input{flex:1}.works{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:22px;margin:22px 0 48px}.work{display:block;min-width:0;transition:transform .3s}.work:hover{transform:translateY(-7px)}.work strong{display:block;font-size:15px;margin-top:12px}.work small{display:block;margin-top:4px}.cover{aspect-ratio:3/4;overflow:hidden;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#312638,#171c30);border:1px solid #363044;font-size:48px}.cover img{height:100%;width:100%;object-fit:cover;transition:transform .4s}.work:hover img{transform:scale(1.05)}button,.btn-link{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;background:linear-gradient(110deg,#ff5a99,#cc4fc3);color:#fff;padding:13px 20px;font:700 14px 'DM Sans',sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s}.btn-link:hover,button:hover{transform:translateY(-2px);box-shadow:0 10px 32px #f0579233}input,select,textarea{display:block;width:100%;background:#10121d;border:1px solid #373b50;color:white;border-radius:10px;padding:13px 14px;font:inherit;outline:0}input:focus,select:focus,textarea:focus{border-color:var(--pink);box-shadow:0 0 0 3px #ff5a991a}label{display:block;color:#d5d6df;margin:13px 0;font-size:13px;font-weight:700}label input,label select{margin-top:7px}form{max-width:720px}.narrow{max-width:590px}.error{padding:15px;background:#58283c;border:1px solid #a64e68;color:white;border-radius:12px}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:10px 0 32px}.dashboard-heading h1{margin:10px 0}.dashboard-heading em,.auth-visual em{font-style:normal;color:#ff72ae}.dashboard-heading p{margin:0}.dot{color:var(--pink)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#c888e2}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:20px}.metric-card,.panel,.admin-grid section{border:1px solid var(--border);border-radius:19px;background:linear-gradient(145deg,#191a29,#11131e);box-shadow:0 12px 36px #0000001f}.metric-card{display:flex;flex-direction:column;gap:8px;padding:24px;min-width:0}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid #654260;color:#ffc0dc;background:#3d293e;border-radius:12px;font-size:24px}.metric-label{font-size:13px;color:#adb0c3}.metric-card strong{font:700 clamp(1.7rem,3vw,2.5rem) 'Space Grotesk',sans-serif;letter-spacing:-.045em}.metric-sub{font-size:12px;color:#777e96}.insights-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin:20px 0}.panel{padding:25px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-heading h2{margin:4px 0 0}.panel-heading small{font-size:12px}.bar-chart{height:185px;display:flex;align-items:stretch;gap:9px;border-bottom:1px solid #35364a;padding:12px 5px 0}.chart-column{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:0}.chart-column .bar{width:100%;max-width:28px;min-height:4px;background:linear-gradient(0deg,#8b58ea,#fa64ad);border-radius:7px 7px 2px 2px;animation:grow .7s both;transform-origin:bottom}.chart-column small{font-size:10px}.chart-note{font-size:11px;margin-bottom:0}.progress-row{margin-bottom:17px}.progress-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.progress-row small{font-size:11px}.track{background:#2c2c40;height:7px;border-radius:20px;overflow:hidden}.track span{display:block;background:linear-gradient(90deg,#8c70f6,#ff61a3);height:100%;border-radius:20px}.activity-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #292b3b;transition:background .2s}.activity-item:hover{background:#ffffff05}.activity-item:last-child{border-bottom:0}.activity-item>span:nth-child(2){flex:1;min-width:0}.activity-item strong,.activity-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-item strong{font-size:13px}.activity-item small,.activity-item time,.activity-item .views{font-size:11px;color:#939ab2;white-space:nowrap}.activity-avatar,.rank{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:10px;background:#35283e;color:#ffa4cb;font-weight:800}.mini-info{display:flex;flex-wrap:wrap;gap:10px;margin:23px 0 34px}.mini-pill{border:1px solid #393344;background:#201e2b;border-radius:30px;padding:9px 13px;font-size:12px;color:#d6cfde}.mini-pill strong{color:#ff9dc8;margin-left:7px}.section-title{padding-top:20px;margin:25px 0}.section-title span{color:var(--pink)}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.admin-grid section{padding:25px}.admin-grid section h2{margin:10px 0 20px}.admin-grid form{max-width:none}.auth-wrap{display:grid;grid-template-columns:1.1fr 1fr;min-height:650px;max-width:1080px;margin:20px auto;overflow:hidden;border-radius:25px;border:1px solid var(--border);background:#121321}.auth-visual{background:linear-gradient(140deg,#422343,#181a37 75%);position:relative;overflow:hidden;padding:65px 45px}.auth-visual h1{margin-top:30px;position:relative;z-index:1}.auth-visual p{max-width:330px;position:relative;z-index:1}.auth-orb{position:absolute;bottom:-140px;right:-90px;width:430px;height:430px;background:radial-gradient(circle at 30% 35%,#ff74bd,#9e53d4 40%,#371b62 65%,transparent 70%);border-radius:50%;filter:blur(3px);opacity:.8}.auth-card{padding:80px 50px;align-self:center}.auth-card h2{font-size:27px;margin:18px 0 8px}.auth-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:#4b2d4b;color:#ff9cce;font-size:30px}.auth-card form{margin-top:25px}.btn-full{width:100%;margin-top:12px}.empty-state{text-align:center;padding:100px 20px}.detail{display:grid;grid-template-columns:250px 1fr;gap:35px}.detail-cover img{width:100%;border-radius:16px}.chapter{display:block;padding:18px;border-bottom:1px solid var(--border);transition:background .2s}.chapter:hover{background:#ffffff08}.chapter small{float:right}.readerbar{position:sticky;top:74px;background:#171828ef;backdrop-filter:blur(14px);z-index:5;display:flex;gap:12px;padding:12px;border-radius:12px;align-items:center;flex-wrap:wrap}.readerbar select{max-width:280px}.reader{max-width:1000px;margin:24px auto}.reader img{display:block;width:100%;height:auto;margin:auto}.reader.double{display:flex;align-items:flex-start}.reader.double img{width:50%}.reader.single img{max-width:850px}.reader-controls{display:flex;justify-content:center;align-items:center;gap:20px}.pagination{display:flex;gap:6px;flex-wrap:wrap;margin:32px 0}.pagination a{background:#292a3d;border-radius:7px;padding:7px 12px}.reveal{opacity:0;transform:translateY(17px);transition:opacity .55s,transform .55s}.reveal.visible{opacity:1;transform:translateY(0)}@keyframes grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}@media(max-width:880px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insights-grid{grid-template-columns:1fr}.auth-wrap{grid-template-columns:1fr}.auth-visual{min-height:270px;padding:35px}.auth-orb{width:280px;height:280px;bottom:-140px}.auth-card{padding:35px}.site-header{flex-wrap:wrap}.dashboard-heading{align-items:flex-start}}@media(max-width:580px){main{padding:25px 15px 70px}.site-header{padding:13px 15px}.site-header nav{gap:12px}.metric-grid{gap:10px}.metric-card{padding:16px}.metric-card strong{font-size:25px}.dashboard-heading{flex-direction:column}.hero{padding:35px 22px}.hero form{flex-direction:column}.detail{grid-template-columns:1fr}.detail-cover{max-width:200px}.auth-card{padding:26px}.panel{padding:18px}.bar-chart{gap:4px}.activity-item time{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal{opacity:1;transform:none}}

/* V2.1 dashboard layout hardening - no database migration */
.dashboard-heading{width:100%;min-width:0}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.metric-grid .metric-card{display:flex;flex-direction:column;gap:9px;min-height:175px;padding:23px;border:1px solid #343449;border-radius:20px;background:linear-gradient(145deg,rgba(34,32,51,.95),rgba(16,18,29,.98));box-shadow:0 12px 35px #0003}
.metric-grid .metric-card strong{display:block;font-size:clamp(28px,3vw,40px);line-height:1.1;color:#fff}
.metric-grid .metric-icon{flex:none}
.insights-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}
.insights-grid>.panel{display:block;min-width:0;padding:26px;border:1px solid #343449;border-radius:20px;background:linear-gradient(140deg,#1a1b2c,#10121d)}
.bar-chart{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;width:100%;height:205px;gap:8px;padding:10px 2px 0}
.bar-chart .chart-column{display:flex;flex:1 1 0;min-width:0;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}
.bar-chart .chart-column .bar{display:block;width:min(26px,90%);flex-shrink:0;border-radius:8px 8px 2px 2px;background:linear-gradient(0deg,#8b58ea,#fa64ad)}
.bar-chart .chart-column small{display:block;flex-shrink:0;color:#9da0b6}
@media(max-width:960px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insights-grid{grid-template-columns:1fr}}
@media(max-width:520px){.metric-grid{gap:10px}.metric-grid .metric-card{padding:15px;min-height:150px}.insights-grid>.panel{padding:17px}.bar-chart{gap:3px}}
/* MangaLib V3 — administration & imports */
.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 30px}.admin-tabs a{padding:10px 15px;border-radius:12px;background:#252035;border:1px solid #40354c;color:#f1d4e4;font-size:13px;font-weight:700;transition:.2s}.admin-tabs a:hover{background:#513052;transform:translateY(-2px)}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:36px;align-items:start}.editor-panel{padding:28px}.editor-panel>p{line-height:1.65;margin-top:-8px}.editor-panel h2{margin:8px 0 20px}.editor-form{max-width:none}.editor-form .form-two,.form-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.editor-form textarea{resize:vertical;min-height:95px;margin-top:7px}.editor-panel .file-zone{display:block;border:1px dashed #8d5891;border-radius:17px;background:linear-gradient(120deg,#332137,#1a1a2d);padding:20px;margin:23px 0;cursor:pointer}.file-zone input{margin:10px 0;background:#10121d}.file-zone small{display:block;line-height:1.6}.file-zone strong{display:block;font-size:15px}.upload-summary{display:block;color:#ff9fc5;font-size:12px}.tag-editor{border:1px solid #34334b;background:#181723;padding:17px;border-radius:15px;margin:20px 0}.tag-editor h3{margin:0}.tag-editor p{font-size:12px;margin:5px 0}.chosen-tags{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0;min-height:48px}.chosen-tag{display:inline-flex;gap:8px;align-items:center;background:#3c2d4f;border:1px solid #775078;border-radius:30px;color:#ffbddb;font-size:12px;padding:7px 10px}.chosen-tag button{font-size:14px;background:none;padding:0;border:0;color:white;box-shadow:none!important}.small-label{display:block;font-size:13px;font-weight:700;color:#d5d6df;padding-top:14px}.help-card{background:#262137;border:1px solid #413453;padding:17px;border-radius:14px;margin-top:25px}.help-card p{margin-bottom:0;font-size:12px}.admin-account{border:1px solid #33354a;border-radius:14px;padding:0 13px;margin:10px 0;background:#161725}.admin-account summary{display:flex;gap:13px;align-items:center;padding:13px 2px;cursor:pointer;list-style:none}.admin-account summary::-webkit-details-marker{display:none}.admin-account summary>span:nth-child(2){flex:1;min-width:0}.admin-account summary strong,.admin-account summary small{display:block;overflow:hidden;text-overflow:ellipsis}.admin-account summary small{font-size:11px}.account-avatar{height:37px;width:37px;display:grid;place-items:center;background:#59315d;border-radius:12px;color:#ffb6da;font-weight:800}.account-chevron{font-size:12px;color:#bb9bbd}.account-form{border-top:1px solid #33354a;padding-top:10px}.admin-account form{margin-bottom:17px}.danger-button{background:#693046;border:1px solid #ad4d64}.success-alert{margin:10px 0;padding:14px 17px;border-radius:12px;border:1px solid #3f8f6d;background:#163e30;color:#b2f5d0}.chapter-entry{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border)}.chapter-entry>.chapter{border-bottom:0;flex:1}.pdf-pill{padding:8px 13px;border-radius:10px;color:#ffc5e1;border:1px solid #69436e;font-size:12px;white-space:nowrap}.pdf-pill:hover{background:#3d2745}@media(max-width:980px){.editor-grid{grid-template-columns:1fr}}@media(max-width:580px){.editor-panel{padding:17px}.editor-form .form-two,.form-two{grid-template-columns:1fr}}
/* V4 analytics and catalogue management */
.admin-nav{margin:20px 0 34px}.analytics-section{margin:35px 0}.analytics-section .panel{margin:20px 0;padding:26px}.analytics-section .metric-grid{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.analytics-section .metric-card{min-height:130px}.analytics-section .metric-card strong{font-size:30px}.admin-table-wrap{overflow-x:auto;max-width:100%;border-radius:13px}.admin-table{border-collapse:collapse;width:100%;min-width:680px;text-align:left;font-size:13px}.admin-table th,.admin-table td{padding:14px 12px;border-bottom:1px solid #353648;vertical-align:middle}.admin-table th{color:#b3b5c6;background:#211f30;font-size:11px;letter-spacing:.04em}.admin-table tr:hover td{background:#ffffff06}.admin-action{display:inline-block;border:1px solid #765174;padding:8px 12px;border-radius:9px;color:#ffb4d5;font-weight:700;font-size:12px}.admin-action.subtle{color:#c5c5d0;border-color:#414154}.admin-search,.inline-filter{display:flex;gap:10px;max-width:760px;align-items:end;margin:20px 0}.admin-search input,.inline-filter select{flex:1}.work-cell{display:flex;gap:12px;align-items:center}.work-cell img{width:40px;height:56px;object-fit:cover;border-radius:7px}.work-cell strong,.work-cell small{display:block}.tag-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:5px 12px;border:1px solid #3b364c;border-radius:12px;padding:18px;margin:20px 0;max-height:360px;overflow:auto}.tag-checks legend{font-weight:700}.tag-checks label{font-weight:500;margin:2px 0;display:flex;align-items:center;gap:7px}.tag-checks input{width:auto;margin:0}.chapter-editor{border:1px solid #39364c;border-radius:12px;margin:10px 0;padding:15px;background:#1a1927}.chapter-editor summary{cursor:pointer}.chapter-editor form{margin:15px 0}.chapter-editor small{color:#a7a6b8}.page-funnel{margin:20px 0}.funnel-row{display:grid;grid-template-columns:85px minmax(60px,1fr) 52px 54px;align-items:center;gap:10px;margin:8px 0;font-size:12px}.funnel-row strong{text-align:right}.funnel-track{height:10px;background:#2d2c3b;border-radius:20px;overflow:hidden}.funnel-track i{height:100%;display:block;background:linear-gradient(90deg,#9b74fd,#fe6fba);border-radius:20px}.analytics-bars{height:155px;display:flex;gap:4px;align-items:flex-end;margin:15px 0}.analytics-bars>div{flex:1;height:100%;display:flex;align-items:flex-end}.analytics-bars span{width:100%;background:linear-gradient(0deg,#8a64da,#ff78bd);display:block;border-radius:4px 4px 0 0}.chart-note{line-height:1.6}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-heading h2{margin-bottom:5px}#audit-logs{padding:25px;margin:30px 0;scroll-margin-top:110px}#reader-insights{scroll-margin-top:100px}@media(max-width:650px){.admin-search,.inline-filter{flex-direction:column;align-items:stretch}.analytics-section .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.funnel-row{grid-template-columns:65px minmax(30px,1fr) 35px 40px;gap:5px}}

/* MangaLib V5 — professional responsive interface */
:root{--bg:#0a0f1c;--surface:#111a2b;--surface2:#172236;--border:#26344d;--text:#f0f4ff;--muted:#93a3bd;--pink:#8b80ff;--purple:#6574ef;--accent:#8b80ff;color-scheme:dark}
body{background:linear-gradient(135deg,#0a101d,#101427 65%,#0b1221);font-family:Inter,'DM Sans',system-ui,sans-serif;min-height:100vh}
body:before{background:radial-gradient(ellipse at 74% -10%,#25345c80,transparent 42%),radial-gradient(ellipse at 0% 30%,#17274770,transparent 50%)}
.ambient-glow{display:none}.site-header{background:#0c1423f5;padding:14px max(24px,calc((100vw - 1450px)/2));min-height:74px;border-bottom:1px solid #293652;box-shadow:0 1px 0 #ffffff06}.site-header nav{gap:10px}.site-header nav a{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:10px;font-weight:600}.site-header nav a:hover{background:#ffffff0b;color:#fff}.site-header nav a.nav-admin{background:#242b50;border:1px solid #46548a;color:#fff}.site-header nav svg{width:16px;height:16px}.brand{font-family:'Space Grotesk',system-ui,sans-serif;font-size:22px;letter-spacing:-.045em;display:flex;align-items:center;gap:10px}.brand-icon{margin:0;background:linear-gradient(140deg,var(--accent),#566de5);width:38px;height:38px;border-radius:11px}.brand-icon svg{width:21px;height:21px}.brand span:not(.brand-icon){color:inherit}
main{max-width:1450px;margin:0 auto;padding:36px 24px 90px}.admin-shell{display:grid;grid-template-columns:236px minmax(0,1fr);gap:32px;align-items:start}.admin-sidebar{position:sticky;top:102px;background:#10192a;border:1px solid #26344d;border-radius:18px;padding:20px 12px;box-shadow:0 16px 50px #0002}.sidebar-top{padding:10px 14px 24px;display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #26344d;margin-bottom:13px}.sidebar-top .eyebrow{font-size:10px;letter-spacing:.14em}.sidebar-top strong{font-size:20px;letter-spacing:-.025em}.sidebar-top small{font-size:12px}.sidebar-links{display:flex;flex-direction:column;gap:4px}.sidebar-links a,.sidebar-back{display:flex;align-items:center;gap:12px;padding:12px 13px;color:#aab9cf;font-weight:600;font-size:13px;border-radius:10px;transition:background .2s,color .2s,transform .2s}.sidebar-links a:hover,.sidebar-back:hover{color:#fff;background:#1d2b42;transform:translateX(2px)}.sidebar-links a.active{background:linear-gradient(105deg,#3b437e,#272e53);color:#fff;border:1px solid #5863ae}.sidebar-links svg,.sidebar-back svg{width:18px;height:18px;flex-shrink:0}.sidebar-back{margin-top:15px;border-top:1px solid #2a3448;border-radius:0;padding-top:18px}.admin-content{min-width:0}.dashboard-heading{margin-bottom:30px;display:flex;justify-content:space-between;align-items:center;gap:24px}.dashboard-heading h1{font-size:clamp(2rem,3.5vw,3.2rem);margin:8px 0 12px;letter-spacing:-.06em}.dashboard-heading h1 em{color:#c1bbff;font-style:normal}.dashboard-heading .eyebrow{color:#a9b5d1;letter-spacing:.13em;font-weight:700;font-size:11px}.dashboard-heading p{margin:0;color:#9cacc4}.dashboard-heading .btn-link{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border:0;padding:13px 18px;border-radius:10px;font-weight:700;box-shadow:0 8px 22px #6552ff35}.dashboard-heading .btn-link:hover{filter:brightness(1.14)}.dot{color:var(--accent)}
.panel,.metric-card,.editor-panel,.auth-card{background:linear-gradient(160deg,#172238,#111b2e);border:1px solid #2e3a54;border-radius:17px;box-shadow:0 14px 40px #0000001c}.panel{padding:23px;margin-bottom:22px}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.metric-card{min-height:136px;padding:20px;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;overflow:hidden}.metric-card:after{content:'';position:absolute;right:-35px;top:-42px;width:130px;height:130px;border-radius:50%;background:#7787ff0c}.metric-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#3c4770;color:#c4c9fa;font-size:17px}.metric-label{color:#a8b8cf;font-size:12px;letter-spacing:.02em;font-weight:600}.metric-card strong{font-size:clamp(1.6rem,2.4vw,2.2rem);color:#fff;line-height:1.1;letter-spacing:-.04em}.metric-sub{font-size:11px;color:#8193af}.insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.insights-grid>.panel{min-width:0}.panel-heading{margin-bottom:20px}.panel-heading h2{font-size:18px;letter-spacing:-.035em}.panel-heading small{color:#8d9fb9}.bar-chart{height:185px}.bar-chart .bar{background:linear-gradient(180deg,#a499ff,#626ee4)}.chart-column small{font-size:10px}.analytics-bars span{background:linear-gradient(180deg,#a499ff,#596ee4)}.activity-item{border-bottom:1px solid #2b3850}.activity-item:last-child{border-bottom:0}.admin-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 28px}.admin-tabs a{background:#172339;border:1px solid #31415f;color:#c5cfe0;padding:10px 14px;border-radius:9px;font-size:12px;font-weight:650}.admin-tabs a:hover{border-color:#7e8dde;color:#fff}.section-title{margin:30px 0 15px;font-size:24px}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.editor-panel{padding:25px;min-width:0}.editor-panel h2{margin:10px 0;font-size:21px}.editor-form{display:flex;flex-direction:column;gap:14px}.form-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}label{font-size:13px;font-weight:650;color:#d8e1f1}input,select,textarea{background:#0e192b!important;border:1px solid #344561!important;color:#f1f5ff!important;outline:none;min-height:44px;border-radius:9px!important;transition:border-color .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px #8085ff28}input::placeholder,textarea::placeholder{color:#75849e}button,.btn-full{background:linear-gradient(120deg,var(--accent),#666dd7);border:0;border-radius:10px;color:#fff;font-weight:700;padding:13px 17px;cursor:pointer;transition:transform .17s,box-shadow .17s,filter .17s}button:hover,.btn-full:hover{transform:translateY(-1px);filter:brightness(1.12);box-shadow:0 7px 25px #6066ec24}button:active{transform:translateY(0)}.admin-table-wrap{overflow-x:auto;border-radius:12px;border:1px solid #2f3f58}.admin-table{width:100%;border-collapse:collapse;min-width:600px}.admin-table th{background:#1d2b42;color:#aebfd8;font-weight:650;letter-spacing:.04em;font-size:11px;text-transform:uppercase}.admin-table td,.admin-table th{padding:14px 17px;border-bottom:1px solid #2b3a53;text-align:left}.admin-table td{font-size:13px;color:#d6e0ef}.admin-table tr:hover td{background:#ffffff05}.admin-table tr:last-child td{border-bottom:none}.admin-action{background:#28395d;color:#c6d7ff;padding:8px 12px;border-radius:8px;display:inline-flex;font-weight:650}.log-action{background:#273353;border:1px solid #42537a;color:#d4ddff;padding:5px 9px;border-radius:7px;display:inline-block}.diagnostic-list>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #2b3950;font-size:13px}.diagnostic-list strong{text-align:right;color:#c6d3f0}.file-zone{border:1.5px dashed #4b6090;border-radius:14px;background:#192740;padding:19px}.file-zone:hover{border-color:#a4a4fa}.tag-editor,.help-card{background:#17243b;border-color:#354966;border-radius:12px;padding:17px}.chosen-tag{background:#35436c;color:#e3e8ff}.success-alert{background:#173a37;color:#b3eade;border:1px solid #2a655a;padding:15px;border-radius:10px}.error{background:#44222c;color:#ffd4dd;border:1px solid #985065;padding:16px;border-radius:10px}.pagination{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.pagination a{padding:7px 12px;background:#1d2d45;border-radius:7px;border:1px solid #384864}.pagination a.active{background:var(--accent);color:#fff}.analytics-section>.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.analytics-section{margin-bottom:30px}.work .cover{border-radius:13px;overflow:hidden}.work:hover{transform:translateY(-5px)}.readerbar{top:74px}.work-cell span.empty-cover{width:40px;height:56px;display:grid;place-items:center;background:#263653;border-radius:7px}.empty-cover{display:grid;place-items:center;min-height:80px;color:#8f9ec5}.empty-cover svg{width:30px;height:30px}.reveal{transition:opacity .25s,transform .25s}.reveal.visible{opacity:1;transform:none}
@media(max-width:1150px){.admin-shell{grid-template-columns:185px minmax(0,1fr);gap:18px}.editor-grid,.insights-grid{grid-template-columns:1fr}.analytics-section>.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){main{padding:18px 13px 60px}.site-header{padding:12px 16px;flex-wrap:wrap}.site-header nav{gap:4px}.site-header nav a{padding:8px;font-size:12px}.admin-shell{display:block}.admin-sidebar{position:static;margin:0 0 24px;padding:12px}.sidebar-top{padding:7px 10px 14px}.sidebar-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sidebar-links a{justify-content:center;text-align:center;gap:5px;flex-direction:column;padding:10px 3px;font-size:11px}.sidebar-back{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-heading{align-items:flex-start;flex-direction:column}.form-two{grid-template-columns:1fr}.panel{padding:17px}.editor-panel{padding:17px}}
@media(max-width:430px){.metric-grid,.analytics-section>.metric-grid{grid-template-columns:1fr 1fr}.metric-card{padding:13px;min-height:120px}.metric-card strong{font-size:26px}.site-header nav a{font-size:11px}.sidebar-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.reveal{opacity:1!important;transform:none!important}}

/* V6 — chapitres discrets et gestion complète des pages */
.compact-chapter{padding:0;overflow:hidden}.compact-chapter>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px}.compact-chapter>summary::-webkit-details-marker,.chapter-page-item>summary::-webkit-details-marker,.chapter-subsection>summary::-webkit-details-marker{display:none}.chapter-summary-title{display:flex;flex-direction:column;gap:4px}.chapter-summary-title strong{font-size:14px}.chapter-summary-title small{font-size:11px}.chapter-expand{font-size:11px;color:#afc3e8;white-space:nowrap}.compact-chapter[open]{border-color:#6378a3}.chapter-editor-body{padding:15px;border-top:1px solid #35445e}.chapter-subsection{border:1px solid #344661;border-radius:10px;padding:12px 14px;margin-bottom:15px;background:#142137}.chapter-subsection>summary{cursor:pointer;color:#d3e2fa;font-weight:650;font-size:13px}.chapter-subsection[open]>summary{margin-bottom:14px}.chapter-edit-form,.page-add-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.chapter-edit-form button,.page-add-form button{align-self:end}.chapter-pages-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.chapter-pages-heading h3{margin:0 0 4px;font-size:15px}.chapter-pages-heading p{margin:0;color:#9faec6;font-size:11px;line-height:1.5}.chapter-pages-list{display:grid;gap:9px;margin-bottom:15px}.chapter-page-item{border:1px solid #34455f;background:#111e31;border-radius:10px;overflow:hidden}.chapter-page-item>summary{cursor:pointer;display:flex;align-items:center;gap:12px;padding:8px 12px}.chapter-page-item>summary:hover{background:#23304a}.chapter-page-item summary img{width:48px;height:65px;object-fit:cover;border-radius:6px;background:#34435c}.page-description{display:flex;flex-direction:column;gap:3px;flex:1}.page-description strong{font-size:13px}.page-description small{font-size:11px;color:#90a1bc}.page-actions{padding:15px;border-top:1px solid #34455f}.page-replace-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.page-replace-form label{flex:1;min-width:180px}.page-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.page-quick-actions form{margin:0}.page-quick-actions button{font-size:12px;padding:9px 13px}.secondary-button{background:#293b59}.danger-button{background:#753449}.chapter-count{color:#aebed8;font-size:12px}.empty-pages{font-size:12px;color:#98a9c4}@media(max-width:640px){.chapter-edit-form,.page-add-form{grid-template-columns:1fr}.chapter-pages-heading{align-items:start;flex-direction:column}.compact-chapter>summary{padding:13px}.chapter-expand{font-size:10px}}

/* V7 – barre de recherche globale et langues regroupées */
.v7-header{display:flex;align-items:center;gap:20px;position:relative;z-index:50}.v7-header .brand{flex-shrink:0}.v7-header nav{margin-left:auto;flex-shrink:0}.header-search{display:flex;align-items:center;min-width:220px;max-width:690px;flex:1;gap:0;position:relative;background:#111d31;border:1px solid #344762;border-radius:13px;min-height:46px;box-shadow:0 6px 30px #0002}.header-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #858aff16}.header-search .search-icon{padding:0 12px;color:#90a5c3;display:flex}.header-search input{min-width:0;flex:1;min-height:42px!important;background:transparent!important;border:none!important;box-shadow:none!important;padding:8px 5px!important;color:#fff}.header-search>button{background:var(--accent);padding:10px 13px;border-radius:8px;margin:3px;display:flex;align-items:center}.header-filter{order:4;margin-right:4px}.header-filter>summary{display:flex;align-items:center;gap:5px;border:1px solid #384963;border-radius:8px;padding:9px 10px;cursor:pointer;font-size:12px;color:#c7d8f0;list-style:none}.header-filter>summary::-webkit-details-marker{display:none}.header-filter-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(325px,90vw);background:#152339;border:1px solid #405375;border-radius:15px;box-shadow:0 18px 48px #0008;padding:18px;display:grid;gap:13px;z-index:100}.header-filter-panel label{display:grid;gap:6px}.header-filter-panel select{width:100%;padding:9px}.header-filter-panel button{width:100%}.catalog-heading{padding:28px 0 12px}.catalog-heading h1{font-size:clamp(25px,4vw,42px);margin:9px 0}.catalog-heading p,.catalog-result-count{color:#9eafc9}.catalog-filter-form{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:12px;align-items:end;padding:18px;background:#142138;border:1px solid #2d3d59;border-radius:16px;margin:20px 0}.catalog-filter-form label{display:grid;gap:7px}.catalog-filter-form input,.catalog-filter-form select{width:100%}.catalog-filter-form button{min-height:45px}.catalog-result-count{margin:20px 0}.work-tag-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.work-tag-list span{font-size:12px;background:#253753;border:1px solid #3b5375;padding:5px 10px;border-radius:25px;color:#d1def5}.chapters-heading{margin-top:35px}.chapters-heading p{color:#a1b3d0;font-size:13px}.chapter-language-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 19px;background:#142137;border:1px solid #2f415e;border-radius:12px;margin:10px 0}.chapter-language-name{display:grid;gap:5px}.chapter-language-name strong{font-size:15px}.chapter-language-name small{color:#91a3bd}.language-buttons{display:flex;flex-wrap:wrap;gap:8px}.language-buttons a,.reader-versions a{display:inline-flex;align-items:center;gap:9px;padding:9px 12px;background:#253d5b;border:1px solid #486080;border-radius:8px;color:#edf3ff;font-size:12px;text-decoration:none}.language-buttons a:hover,.reader-versions a:hover{border-color:var(--accent);background:#30476f}.language-buttons a span{font-size:10px;color:#a0b3d1}.reader-versions{display:flex;gap:5px}.reader-versions a.selected{background:var(--accent);border-color:var(--accent)}.inline-new-chapter{margin-top:20px}.inline-new-chapter[open]{padding:20px}.inline-new-chapter form{margin-top:16px}@media(max-width:1150px){.v7-header{flex-wrap:wrap}.header-search{order:3;max-width:none;flex:1 1 100%}.catalog-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-form button{grid-column:span 2}}@media(max-width:680px){.chapter-language-row{flex-direction:column;align-items:stretch}.catalog-filter-form{grid-template-columns:1fr}.catalog-filter-form button{grid-column:span 1}.v7-header nav{gap:2px}.header-search .search-icon{display:none}.header-search input{font-size:12px}.header-filter>summary span{display:none}}

/* V8 - catalogue sans grand bandeau et bibliothèque locale */
.home-intro{padding:24px 0 5px}.home-intro h1{font-size:clamp(30px,4vw,48px);margin:8px 0 4px;letter-spacing:-.035em}.home-intro p,.library-intro p{color:#a9b6ce;margin:7px 0 22px}.home-intro + h2{margin-top:24px}.favorite-toggle,.resume-work{display:inline-flex;gap:10px;align-items:center;border:1px solid #415a7c;background:#1c304b;color:#e8f0ff;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:650;cursor:pointer;text-decoration:none}.favorite-toggle:hover,.resume-work:hover{border-color:var(--accent)}.favorite-toggle.is-favorite{background:#45304a;border-color:#ad6aa4;color:#ffe3f1}.favorite-toggle.is-favorite svg{fill:currentColor}.work-reader-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}.work-reader-actions [hidden]{display:none!important}.library-intro{padding:20px 0 7px}.library-intro h1{font-size:clamp(28px,4vw,43px);margin:8px 0}.library-tabs{display:flex;gap:8px;border-bottom:1px solid #33445f;margin:13px 0 24px;flex-wrap:wrap}.library-tabs button{display:flex;align-items:center;gap:9px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:13px 16px;color:#aab8ce}.library-tabs button.active{border-color:var(--accent);color:white}.library-tabs span{background:#263853;border-radius:10px;padding:2px 7px}.library-empty{background:#142238;border:1px dashed #38516f;padding:28px;border-radius:14px;color:#abbcd3}.library-local-note{margin-top:32px;font-size:13px;color:#8ca0bd}.history-list{display:grid;gap:12px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#15243b;border:1px solid #324762;border-radius:13px;padding:18px;color:#f0f3ff;text-decoration:none}.history-item:hover{border-color:var(--accent)}.history-item>div{display:grid;gap:6px}.history-item span,.history-item small{font-size:12px;color:#9fb0c9}.history-progress{text-align:right}.history-progress strong{font-size:13px}@media(max-width:590px){.history-item{align-items:flex-start;flex-direction:column}.history-progress{text-align:left}.work-reader-actions{flex-direction:column}.home-intro{padding-top:10px}}

/* V9 — Studio manga: public catalogue, favorites and footer */
:root{--manga-ink:#090c16;--manga-plate:#121b2e;--manga-glow:#a482ff;--manga-line:#33415b}
body{background:radial-gradient(ellipse 55% 26% at 85% -8%,#4b345c33,transparent),radial-gradient(ellipse 42% 31% at 3% 20%,#243c5538,transparent),#0a0e18}
.site-header{border-bottom:1px solid #8191b51c;box-shadow:0 12px 42px #0002}
.home-intro{position:relative;padding:22px 0 15px;border-bottom:1px solid #6b83ab20;margin-bottom:18px}
.home-intro h1,.library-intro h1{background:linear-gradient(95deg,#fff 10%,#c3c8f9 66%,#a894e8);background-clip:text;-webkit-background-clip:text;color:transparent}
.works{gap:26px 18px}
.manga-tile{position:relative;isolation:isolate;min-width:0}
.work-cover-wrap{position:relative;border-radius:17px;overflow:hidden;background:#151b2b;border:1px solid #4250738c;box-shadow:0 10px 22px #0004;transition:border-color .25s,box-shadow .3s,transform .3s}
.manga-tile:hover .work-cover-wrap{border-color:#9685f5;box-shadow:0 18px 38px #0008,0 0 0 1px #a487ff26;transform:translateY(-3px)}
.manga-tile:hover{transform:none}
.work-main-link{display:block}.manga-tile .cover{border:0;border-radius:0;aspect-ratio:3/4.25}.manga-tile .cover img{object-fit:cover}
.manga-tile:hover .cover img{transform:scale(1.045)}
.tile-favorite{position:absolute;top:10px;right:10px;z-index:2;width:39px;height:39px;padding:0;border:1px solid #d8e0ff55;border-radius:13px;background:#111827d9!important;color:#fff;display:grid;place-items:center;box-shadow:0 6px 19px #0007;backdrop-filter:blur(12px);transition:transform .2s,background .2s,border-color .2s}
.tile-favorite:hover{transform:scale(1.08)!important;background:#44325f!important;border-color:#bc96ff;box-shadow:0 7px 17px #0009}
.tile-favorite.is-favorite{color:#ff8faf;background:#472845e8!important;border-color:#f48ec5}.tile-favorite.is-favorite svg{fill:currentColor}
.tile-favorite svg{width:19px;height:19px;pointer-events:none}
.work-title-link{display:block;padding:10px 2px 0;min-width:0}.work-title-link strong{margin:0;color:#f4f5ff;font-size:14px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.work-title-link small{font-size:11px;color:#9daecc}
.work-title-link:hover strong{color:#c5b1ff}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.site-footer{position:relative;text-align:left;overflow:hidden;border-top:1px solid #4a587577;background:linear-gradient(120deg,#0b1020,#12182c 52%,#111125);padding:0 22px}
.footer-orbit{position:absolute;right:-120px;top:-170px;width:560px;height:480px;border:1px solid #8d7cbb16;border-radius:50%;box-shadow:0 0 0 65px #8d7cbb07,0 0 0 155px #8d7cbb04;pointer-events:none}
.footer-inner{max-width:1280px;margin:auto;position:relative;padding:55px 0 24px}
.footer-top{display:grid;grid-template-columns:minmax(230px,1.1fr) minmax(0,1.3fr);gap:65px;padding-bottom:45px}
.footer-logo{display:inline-flex;align-items:center;font:800 26px 'Space Grotesk',system-ui,sans-serif;letter-spacing:-.06em;color:#f9f7ff}.footer-logo .brand-icon{margin-right:12px}
.footer-intro p{max-width:425px;font-size:13px;line-height:1.9;color:#9cabc5;margin:23px 0}
.footer-note{display:inline-flex;gap:9px;align-items:center;color:#b6a9e7;font-size:12px}.footer-note svg{width:17px;height:17px}
.footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.footer-links>div{display:flex;flex-direction:column;gap:13px}
.footer-links h3{margin:2px 0 6px;font-size:13px;font-weight:750;letter-spacing:.07em;color:#f6f4ff}
.footer-links a{font-size:13px;color:#9daac3;width:fit-content;transition:color .2s,transform .2s}.footer-links a:hover{color:#c7b4ff;transform:translateX(3px)}
.footer-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;justify-content:space-between;padding:22px 0 0;border-top:1px solid #46526c60;color:#8593ae;font-size:11px}
.back-to-top{display:inline-flex;align-items:center;gap:7px;color:#c3b8ee;font-weight:650}.back-to-top svg{width:16px;height:16px}
.chapter-admin-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:850px){.footer-top{grid-template-columns:1fr;gap:38px}.footer-links{max-width:680px}}
@media(max-width:520px){.site-footer{padding:0 18px}.footer-inner{padding-top:38px}.footer-links{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:25px}.manga-tile .tile-favorite{width:36px;height:36px}.works{gap:20px 12px}}
@media(prefers-reduced-motion:reduce){.manga-tile,.work-cover-wrap,.tile-favorite,.footer-links a{transition:none!important}}

/* V11 — Design responsive, accessible, professional */
:root{--focus:#bcb0ff;--surface-elevated:#172139}
:focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px}
::selection{background:#8f76ff55;color:#fff}
button,select,input,textarea,a{-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}
.site-header{gap:16px;isolation:isolate}.brand{display:inline-flex;align-items:center}.site-header nav a{min-height:40px;display:inline-flex;align-items:center;gap:7px}
.site-header nav a:hover,.back-to-top:hover{color:#e3d9ff}
.panel,.metric-card,.manga-tile .work-cover-wrap,.chapter-language-row,.chapter-editor,.admin-account{transition:border-color .25s ease,box-shadow .28s ease,transform .28s ease}
.panel:hover,.metric-card:hover{border-color:#465476;box-shadow:0 16px 40px #0004}
.metric-card{background:linear-gradient(140deg,#19233a,#111827)}
.metric-card strong{font-variant-numeric:tabular-nums}.panel-heading{flex-wrap:wrap}.admin-table-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.admin-table{min-width:600px}
.page-funnel{display:grid;gap:8px;padding:14px 3px}.funnel-row{display:grid;grid-template-columns:75px minmax(0,1fr) 48px 55px;gap:10px;align-items:center;font-size:12px}.funnel-track{min-width:0;height:9px;background:#303a55;border-radius:20px;overflow:hidden}.funnel-track i{display:block;height:100%;background:linear-gradient(90deg,#8d7bf4,#e07bc9);border-radius:20px}.funnel-row strong,.funnel-row small{font-variant-numeric:tabular-nums;text-align:right}
.inline-filter{display:flex;max-width:100%;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:18px}.inline-filter select{flex:1 1 210px;min-width:0}.inline-filter button{min-height:44px}
.analytics-bars{display:flex;align-items:end;height:170px;gap:5px;padding:8px 0;border-bottom:1px solid #4a5270}.analytics-bars>div{min-width:0;flex:1;height:100%;display:flex;align-items:end}.analytics-bars>div>span{width:100%;background:linear-gradient(0deg,#7164e1,#d18bf6);border-radius:4px 4px 0 0;transition:height .4s ease}
.error-view{min-height:100vh;display:grid;place-items:center;padding:24px}.error-view main.error-layout{max-width:680px;width:100%;min-height:auto;margin:0;padding:56px 40px;text-align:center;background:linear-gradient(150deg,#192039,#101524);border:1px solid #344262;border-radius:26px;box-shadow:0 30px 90px #0006}.error-illustration{margin:auto auto 20px;width:70px;height:70px;color:#ada0ff}.error-number{font-size:clamp(68px,14vw,124px);font-weight:850;letter-spacing:-.09em;line-height:1;background:linear-gradient(120deg,#fff,#b9adff);background-clip:text;-webkit-background-clip:text;color:transparent}.error-layout h1{font-size:clamp(26px,4vw,40px);margin:12px 0}.error-layout p{max-width:460px;margin:0 auto 22px}.error-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:28px}.error-secondary{border:1px solid #516185;padding:12px 18px;border-radius:12px;color:#d5dfff}
@media(max-width:1100px){.site-header{padding:14px 22px}.v7-header{gap:12px}.site-header nav{gap:10px}.admin-shell{min-width:0}.admin-content{min-width:0}.insights-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){main{padding:22px 16px 65px}.site-header{padding:12px 16px;flex-wrap:wrap}.site-header .brand{font-size:20px}.site-header nav{order:2;flex:1 1 auto;justify-content:flex-end;margin-left:0;gap:8px}.site-header nav a{font-size:12px}.header-search{order:3;flex:1 1 100%;min-width:0}.site-header nav .nav-logout span{display:none}.works{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:16px 12px}.detail{grid-template-columns:minmax(0,1fr)}.detail-cover{max-width:210px}.readerbar{top:0;gap:8px}.readerbar select{max-width:100%;flex:1 1 140px}.reader.double{flex-wrap:wrap}.reader.double img{width:50%}.reader-controls{position:sticky;bottom:8px;background:#151f34e9;border-radius:14px;padding:8px}.admin-shell{display:block}.admin-sidebar{position:static;width:auto;max-width:100%;margin-bottom:20px}.sidebar-links{display:flex;overflow:auto;gap:7px;padding-bottom:8px;scrollbar-width:thin}.sidebar-links a{flex:0 0 auto;flex-direction:row;gap:6px;white-space:nowrap;padding:9px 12px;font-size:12px}.admin-content{width:100%}.editor-grid{grid-template-columns:1fr}.footer-top{gap:24px}.error-view main.error-layout{padding:40px 22px}}
@media(max-width:480px){.site-header nav{order:3;flex:1 1 100%;justify-content:space-between}.header-search{order:2}.header-search>button{padding:9px}.site-header nav .nav-admin{padding:8px 10px}.metric-grid,.analytics-section>.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:14px;min-height:115px}.metric-card strong{font-size:clamp(21px,6vw,28px)}.panel{padding:15px}.works{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-form{padding:13px}.footer-links{gap:21px}.readerbar{font-size:12px}.funnel-row{grid-template-columns:53px minmax(0,1fr) 34px 42px;gap:5px;font-size:10px}.error-actions{flex-direction:column}.error-actions>*{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* V12 — Manga Studio: login redesign + consolidated translated chapters */
.login-v12{max-width:1140px;margin:12px auto 50px;animation:v12Arrival .55s ease both}
.login-v12-shell{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(370px,.94fr);min-height:690px;overflow:hidden;border-radius:28px;border:1px solid #46516f;background:#111827;box-shadow:0 32px 105px #030612b0;isolation:isolate}
.login-v12-story{position:relative;overflow:hidden;display:flex;align-items:flex-start;flex-direction:column;justify-content:flex-end;padding:54px clamp(24px,4vw,62px) 60px;background:radial-gradient(circle at 53% 26%,#4a4785 0,transparent 44%),linear-gradient(150deg,#202242,#151b34 65%,#0d1629)}
.login-v12-story:after{content:'';position:absolute;inset:0;opacity:.2;pointer-events:none;background:repeating-linear-gradient(135deg,transparent 0 30px,#d4d2ff12 31px 32px)}
.login-v12-story>*{position:relative;z-index:1}.login-v12-label,.login-v12-top{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:800;letter-spacing:.16em;color:#c6baf8}.login-v12-label{position:absolute;top:38px;left:clamp(24px,4vw,62px)}
.login-v12-label svg{width:22px;height:22px}.login-v12-art{width:min(100%,410px);height:280px;margin:20px auto 26px;position:relative;display:grid;place-items:center;isolation:isolate}
.login-v12-ring{width:244px;height:244px;border-radius:33%;border:1px solid #c8baff46;box-shadow:0 0 0 24px #b9a9fc0c,0 0 0 64px #b9a9fc08,0 0 90px #9e8aff24;transform:rotate(17deg);animation:v12Float 8s ease-in-out infinite}
.login-v12-kanji{position:absolute;font-size:150px;font-family:serif;line-height:1;color:#ede4ff;opacity:.7;text-shadow:0 15px 50px #9b8af46b;transform:rotate(-9deg)}
.login-v12-art-line{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#b3a7d5;font-size:10px;letter-spacing:.21em}
.login-v12-story .eyebrow{color:#c9bcff}.login-v12-story h1{font-size:clamp(36px,4.5vw,62px);line-height:1.05;margin:14px 0 20px;letter-spacing:-.065em}.login-v12-story h1 em{font-style:normal;color:#af9dff}.login-v12-story p{font-size:14px;max-width:380px;color:#b5bfda;line-height:1.8;margin:0}.login-v12-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:27px}.login-v12-pills span{padding:7px 12px;border-radius:30px;background:#a99afd13;color:#dad3ff;border:1px solid #a99afd45;font-size:11px;font-weight:650}
.login-v12-formzone{padding:clamp(30px,4vw,60px);display:flex;flex-direction:column;justify-content:center;background:linear-gradient(160deg,#131d30,#0d1322 75%);min-width:0}
.login-v12-top{margin-bottom:64px;color:#8494b4}.login-v12-top svg{color:#a89bfd}.login-v12-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;background:#806afa20;border:1px solid #8578d65c;color:#c7b9ff;margin-bottom:24px}.login-v12-icon svg{width:25px;height:25px}.login-v12-formzone .eyebrow{color:#a69ce1}.login-v12-formzone h2{font-size:clamp(29px,3vw,41px);margin:10px 0 6px;letter-spacing:-.06em}.login-v12-formzone>p{font-size:13px;color:#a3afc6;margin:0 0 25px}.login-v12-form{width:100%;max-width:none}.login-v12-form>label{font-size:12px;color:#cbd4e5;margin:14px 0 9px}.login-v12-field{display:flex;gap:11px;align-items:center;border:1px solid #3b4864;background:#101b2e;border-radius:12px;padding:0 14px;transition:border-color .18s,box-shadow .18s}.login-v12-field:focus-within{border-color:#9c8dff;box-shadow:0 0 0 3px #9589fc20}.login-v12-field>svg{width:18px;height:18px;color:#8498bb;flex:none}.login-v12-field input{min-width:0;width:100%;height:52px;border:0!important;box-shadow:none!important;background:transparent!important;padding:10px 0!important;outline:none;color:#f8f8ff;font-size:14px}.login-v12-eye{width:35px;height:35px;flex:none;border-radius:9px;background:transparent!important;padding:8px;color:#a5b4d2;box-shadow:none!important}.login-v12-eye:hover{background:#303d55!important;transform:none}.login-v12-eye svg{width:18px;height:18px}.login-v12-submit{width:100%;margin-top:25px;min-height:53px;background:linear-gradient(110deg,#9883ff,#7165df)!important;border:1px solid #aa9bff;border-radius:12px;box-shadow:0 10px 30px #6551ee2b;justify-content:space-between;padding:0 19px}.login-v12-foot{border-top:1px solid #35415a;margin-top:30px;padding-top:18px;display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:11px;color:#8d9ab5}.login-v12-foot svg{width:14px;height:14px}.login-v12-foot a{color:#c1b5ff;margin-left:auto}.login-v12-foot a:hover{text-decoration:underline}
.chapter-volume{border:1px solid #384a67;border-radius:16px;margin:13px 0;overflow:hidden;background:linear-gradient(130deg,#1b2940,#131d32)}.chapter-volume>summary{display:flex;align-items:center;gap:12px;padding:17px 19px;cursor:pointer;list-style:none;transition:background .22s}.chapter-volume>summary::-webkit-details-marker{display:none}.chapter-volume>summary:hover{background:#ffffff08}.chapter-volume[open]{border-color:#7a75c1}.volume-title{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.volume-title strong{font-size:15px;color:#f2f5ff}.volume-title small{font-size:11px;color:#97a9c4}.volume-languages{font-size:11px;color:#d4cbff;border:1px solid #7f71b464;border-radius:28px;padding:7px 12px;background:#8777c318}.chapter-volume>summary .chapter-expand{display:flex;transition:transform .2s}.chapter-volume[open]>summary .chapter-expand{transform:rotate(90deg)}.chapter-volume-content{padding:0 16px 18px;border-top:1px solid #36435f}.chapter-volume-content>.compact-chapter{margin:9px 0;background:#10192b}.volume-hint{font-size:12px;margin:14px 0}.chapter-volume-content .chapter-summary-title strong{color:#cfc5ff}.chapter-language-row{border-radius:15px;padding:19px 21px}.chapter-language-name strong{letter-spacing:-.01em}.language-buttons a{border-radius:10px;min-height:42px;transition:background .2s,border-color .2s,transform .2s}.language-buttons a:hover{transform:translateY(-2px)}
@keyframes v12Float{0%,100%{transform:translateY(0) rotate(17deg)}50%{transform:translateY(-15px) rotate(25deg)}}@keyframes v12Arrival{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.login-v12-shell{grid-template-columns:1fr;min-height:unset}.login-v12-story{min-height:330px;padding:65px 32px 34px}.login-v12-art{position:absolute;right:1%;top:20px;opacity:.29;width:260px;height:260px;pointer-events:none}.login-v12-story h1{font-size:43px}.login-v12-label{top:28px;left:32px}.login-v12-formzone{padding:36px 32px}.login-v12-top{margin-bottom:30px}}
@media(max-width:520px){.login-v12{margin:0 auto 30px}.login-v12-shell{border-radius:17px}.login-v12-story{min-height:305px;padding:70px 24px 27px}.login-v12-label{left:24px}.login-v12-story h1{font-size:36px}.login-v12-story p{font-size:12px}.login-v12-formzone{padding:29px 23px 34px}.login-v12-foot a{margin-left:0}.volume-languages{font-size:10px;max-width:120px;text-align:center}.chapter-volume>summary{padding:13px}.chapter-volume-content{padding:0 10px 12px}.login-v12-pills{gap:6px}.login-v12-pills span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.login-v12,.login-v12-ring{animation:none!important}}

/* V13 — barre de recherche avec suggestions rapides */
.header-search{position:relative;isolation:isolate}
.manga-suggestions{position:absolute;z-index:200;top:calc(100% + 9px);left:0;right:0;max-height:min(480px,66vh);overflow:auto;border:1px solid rgba(151,163,205,.25);border-radius:17px;background:#12192b;box-shadow:0 25px 70px rgba(0,0,0,.48);padding:7px;animation:suggestOpen .16s ease both}
.manga-suggestions[hidden]{display:none!important}
.manga-suggestion{display:flex;align-items:center;gap:13px;padding:8px 11px;border-radius:11px;text-decoration:none;color:#f0f3ff;transition:background .15s ease,transform .15s ease;min-width:0}
.manga-suggestion:hover,.manga-suggestion.active{background:rgba(147,132,255,.17);transform:translateX(2px)}
.manga-suggestion img,.suggestion-cover-empty{width:42px;height:59px;object-fit:cover;border-radius:6px;flex:none;background:linear-gradient(145deg,#544283,#202944)}
.suggestion-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.suggestion-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggestion-copy small{font-size:12px;color:#a5aec6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes suggestOpen{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){.manga-suggestions{max-height:55vh;left:-2px;right:-2px}.manga-suggestion{padding:7px}}
@media(prefers-reduced-motion:reduce){.manga-suggestions,.manga-suggestion{animation:none!important;transition:none!important}}

/* V14 — Bibliothèque de lecture : redesign premium, sans compte */
.library-v14{--lib-accent:#a594ff;--lib-border:#2a3650;max-width:1390px;margin:0 auto;animation:libAppear .45s ease both}
.library-v14-hero{isolation:isolate;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:stretch;gap:34px;padding:clamp(28px,5.2vw,65px);border:1px solid #414269;border-radius:25px;background:radial-gradient(circle at 73% 5%,#5544793b 0,transparent 36%),linear-gradient(115deg,#1c2037 0%,#171d32 50%,#111a2e 100%);box-shadow:0 22px 70px #0206114f}
.library-v14-glow{position:absolute;right:-82px;top:-144px;width:430px;height:430px;border:1px solid #9a83ff23;border-radius:50%;box-shadow:0 0 0 56px #a994ff08,0 0 0 124px #a994ff04;z-index:-1;pointer-events:none}
.library-v14-kicker{display:inline-flex;align-items:center;gap:9px;color:#bdb2fa;font-size:11px;font-weight:800;letter-spacing:.16em}.library-v14-kicker svg{width:17px;height:17px}
.library-v14-hero h1{font-family:'Space Grotesk',Inter,system-ui,sans-serif;line-height:1.075;letter-spacing:-.06em;font-size:clamp(37px,4.5vw,64px);margin:23px 0 20px;color:#fff;font-weight:800}.library-v14-hero h1 em{font-style:normal;background:linear-gradient(100deg,#e8e3ff,#b7a7ff 55%,#829fff);-webkit-background-clip:text;background-clip:text;color:transparent}.library-v14-hero-main>p{color:#adb9d0;font-size:14px;line-height:1.8;max-width:580px;margin:0}
.library-v14-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin-top:29px}.library-v14-primary,.library-v14-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:45px;padding:12px 18px;border-radius:11px;font-size:13px;font-weight:750;text-decoration:none;transition:transform .18s,box-shadow .18s,background .18s}.library-v14-primary{background:linear-gradient(110deg,#9987fa,#766cdd);color:white!important;box-shadow:0 8px 24px #7e6efb33;border:1px solid #b1a1ff80}.library-v14-secondary{border:1px solid #505d7d;background:#ffffff08;color:#d5d9ef!important}.library-v14-primary:hover,.library-v14-secondary:hover{transform:translateY(-2px);box-shadow:0 10px 24px #14153e99}.library-v14-hero-actions svg{width:17px;height:17px}
.library-v14-insights{display:grid;align-content:center;gap:12px}.library-v14-insight{min-width:0;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;align-items:center;gap:0 11px;border:1px solid #4b52733f;padding:17px 18px;background:#ffffff08;border-radius:15px;backdrop-filter:blur(8px)}.library-v14-insight svg{grid-row:span 2;width:19px;height:19px;color:#b4a5ff;padding:9px;box-sizing:content-box;border-radius:10px;background:#9f92ff1b}.library-v14-insight>span{font-size:24px;line-height:1.13;font-weight:800;color:#f8f7ff;letter-spacing:-.04em;white-space:nowrap}.library-v14-insight small{color:#a3b3d2;font-size:11px;margin-top:5px}
.library-v14-content{margin-top:38px}.library-v14-heading{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:18px;margin-bottom:24px}.library-v14-heading h2{font-family:'Space Grotesk',Inter,sans-serif;font-size:clamp(26px,3vw,35px);letter-spacing:-.045em;margin:7px 0 4px}.library-v14-heading p{color:#93a4c1;font-size:13px;margin:0}.library-v14-heading .eyebrow{font-size:10px;letter-spacing:.16em;color:#b8a9ff}.library-v14-search{display:flex;gap:10px;align-items:center;padding:0 14px;border:1px solid #354867;border-radius:12px;background:#111c2f;min-width:250px;max-width:100%;height:45px;transition:border-color .2s}.library-v14-search:focus-within{border-color:#a79bff}.library-v14-search svg{width:17px;height:17px;flex:none;color:#92a4bf}.library-v14-search input{border:0!important;background:transparent!important;box-shadow:none!important;min-width:0;width:100%;color:#f3f2ff;outline:0;padding:0!important;font-size:13px}
.library-v14-tabs{display:flex;align-items:stretch;gap:10px;padding:5px;border-radius:14px;background:#101b2e;border:1px solid #2e3b56;margin-bottom:26px;width:max-content;max-width:100%;flex-wrap:wrap}.library-v14-tabs button{display:flex;align-items:center;gap:10px;background:transparent;border:1px solid transparent;border-radius:10px;padding:11px 18px;font-size:13px;font-weight:700;color:#9babca;transition:background .2s,color .2s,box-shadow .2s}.library-v14-tabs button.active{background:linear-gradient(110deg,#394268,#2b3255);border-color:#6e69a36b;color:#fff;box-shadow:0 4px 18px #03081455}.library-v14-tabs button:hover{color:white}.library-v14-tabs svg{width:17px;height:17px}.library-v14-tabs button span{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;background:#ffffff10;border-radius:30px;color:#e2e3ff;font-size:11px}
.library-v14-grid.works{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:25px 18px}.library-v14-tile{transition:transform .2s}.library-v14-tile:hover{transform:translateY(-4px)}.library-v14-tile .work-cover-wrap{border-radius:13px;overflow:hidden;box-shadow:0 14px 26px #0004}.library-v14-tile .work-title-link{margin-top:12px}.library-v14-tile .work-title-link strong{font-size:14px;line-height:1.4}.library-v14-tile .work-title-link small{font-size:12px;color:#8e9db8}
.library-v14-empty{min-height:315px;border:1px dashed #414a70;border-radius:20px;background:radial-gradient(circle at 50% 0%,#5a4d8420,transparent 56%),#121d30;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:38px 24px}.library-v14-empty[hidden]{display:none!important}.library-v14-empty-icon{display:grid;place-items:center;width:64px;height:64px;background:#9c8aff18;color:#bcaeff;border-radius:19px;border:1px solid #a490ff36;margin-bottom:18px}.library-v14-empty-icon svg{width:29px;height:29px}.library-v14-empty h3{font-family:'Space Grotesk',Inter,sans-serif;color:#eff0ff;font-size:22px;letter-spacing:-.035em;margin:0 0 10px}.library-v14-empty p{max-width:480px;color:#a1b0ca;font-size:13px;line-height:1.75;margin:0 0 21px}.library-v14-empty .library-v14-primary{min-height:43px}
.library-v14-history{display:grid;gap:12px}.library-v14-history-item{min-width:0;display:flex;align-items:center;gap:20px;padding:15px 18px;border:1px solid #2f405e;border-radius:17px;background:linear-gradient(110deg,#17253b,#101b2d);color:#fff;text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}.library-v14-history-item:hover{transform:translateY(-2px);border-color:#8880d1;box-shadow:0 14px 30px #0003}.library-v14-history-cover{display:grid;place-items:center;width:76px;height:102px;flex:none;border-radius:9px;overflow:hidden;background:linear-gradient(130deg,#474171,#1c2c43);font-weight:800;font-size:28px;color:#c4bbff}.library-v14-history-cover img{width:100%;height:100%;object-fit:cover}.library-v14-history-info{flex:1;min-width:0;display:grid;gap:6px}.library-v14-history-label{letter-spacing:.13em;font-size:9px;font-weight:800;color:#a99bff}.library-v14-history-info>strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-v14-history-info>small{font-size:12px;color:#a7b3cc}.library-v14-progress-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#b4c2d9;margin-top:5px}.library-v14-progress-track{height:6px;overflow:hidden;border-radius:5px;background:#33415b}.library-v14-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#7a76ef,#b89fff);border-radius:5px}.library-v14-history-cta{font-size:12px;font-weight:750;padding:10px 13px;color:#d5d1ff;white-space:nowrap;background:#7f70d91e;border:1px solid #a496ff38;border-radius:9px}
.library-v14-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:31px;padding:18px 0;border-top:1px solid #2b3851}.library-v14-bottom p{display:flex;align-items:center;gap:9px;color:#8294b2;font-size:11px;line-height:1.6;margin:0}.library-v14-bottom svg{width:16px;height:16px;flex:none}.library-v14-clear{display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid #394661;color:#a5b2ca;border-radius:10px;font-size:11px;padding:9px 12px}.library-v14-clear:hover{color:#fff;border-color:#877ab1}.library-v14-load-error{color:#f4bfd2;padding:16px;border:1px solid #8d5269;border-radius:10px}
.library-v14-tile[hidden],.library-v14-history-item[hidden]{display:none!important}
@keyframes libAppear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:930px){.library-v14-hero{grid-template-columns:1fr;padding:34px}.library-v14-insights{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.library-v14-insight{padding:13px;grid-template-columns:1fr}.library-v14-insight svg{grid-row:auto;margin-bottom:8px}.library-v14-insight>span{font-size:21px}.library-v14-insight small{font-size:10px}.library-v14-hero h1{font-size:43px}}
@media(max-width:600px){.library-v14-hero{border-radius:19px;gap:25px;padding:26px 21px}.library-v14-hero h1{font-size:clamp(32px,9vw,43px);margin:17px 0 15px}.library-v14-hero-main>p{font-size:12px}.library-v14-hero-actions{gap:8px}.library-v14-primary,.library-v14-secondary{font-size:11px;padding:11px}.library-v14-insights{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.library-v14-insight{padding:10px 9px;border-radius:11px}.library-v14-insight svg{width:15px;height:15px;padding:6px}.library-v14-insight>span{font-size:19px}.library-v14-insight small{font-size:9px;line-height:1.3}.library-v14-heading{align-items:stretch}.library-v14-heading>div{width:100%}.library-v14-search{max-width:none;width:100%}.library-v14-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:4px}.library-v14-tabs button{justify-content:center;padding:11px 7px;font-size:11px;gap:6px}.library-v14-tabs button svg{width:14px;height:14px}.library-v14-tabs button span{font-size:10px;min-width:18px;height:18px}.library-v14-grid.works{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.library-v14-empty{min-height:280px;padding:26px 20px}.library-v14-empty h3{font-size:19px}.library-v14-history-item{gap:12px;padding:12px}.library-v14-history-cover{width:60px;height:88px}.library-v14-history-info>strong{font-size:14px}.library-v14-history-cta{display:none}.library-v14-bottom{align-items:flex-start;flex-direction:column}.library-v14-bottom p{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.library-v14{animation:none!important}.library-v14-tile,.library-v14-history-item,.library-v14-primary,.library-v14-secondary{transition:none!important}}

/* V15 — Bibliothèque compacte, éditoriale et vérifiable */
.library-v15{--lv:#aaa0ff;max-width:1400px;margin:0 auto 65px;color:#eff1ff;animation:lvUp .4s ease both}
.library-v15-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,410px);gap:clamp(25px,5vw,80px);padding:45px clamp(26px,4.4vw,66px);border:1px solid #383b5e;border-radius:20px;background:radial-gradient(circle at 82% 10%,#a587ff19,transparent 40%),linear-gradient(115deg,#14152c,#101b30);position:relative;overflow:hidden}
.library-v15-head:after{content:'';position:absolute;right:-75px;top:-150px;width:360px;height:360px;border-radius:50%;border:1px solid #a89cff23;box-shadow:0 0 0 55px #9a89ff08;pointer-events:none}
.library-v15-headcopy,.library-v15-numbers{position:relative;z-index:1}
.library-v15-edition,.library-v15-small{font-size:10px;font-weight:850;letter-spacing:.2em;color:#b2a5ff;display:inline-flex;align-items:center;gap:10px}
.library-v15-edition b{font-size:10px;letter-spacing:0;border:1px solid #8070df7b;border-radius:5px;padding:3px 7px;color:#e4deff}
.library-v15-signal{width:7px;height:7px;background:#a495ff;border-radius:50%;box-shadow:0 0 10px #9b85fc}
.library-v15 h1{font-size:clamp(38px,5.2vw,70px);letter-spacing:-.065em;line-height:1.03;margin:23px 0 17px;font-weight:850}
.library-v15 h1 em{font-style:normal;color:#b7aafa}
.library-v15-headcopy>p{max-width:550px;font-size:14px;line-height:1.75;color:#b0bdd5;margin:0}
.library-v15-quick{margin-top:23px;display:flex;align-items:center;flex-wrap:wrap;gap:17px}
.library-v15-quick a,.library-v15-empty-text a{display:inline-flex;align-items:center;justify-content:center;gap:11px;background:linear-gradient(135deg,#9383ff,#655bea);color:#fff;border-radius:10px;padding:12px 17px;text-decoration:none;font-size:12px;font-weight:800;transition:transform .18s,box-shadow .18s}
.library-v15-quick a:hover,.library-v15-empty-text a:hover{transform:translateY(-2px);box-shadow:0 8px 24px #8078ed35}
.library-v15-quick>span{font-size:11px;color:#8291ad;display:inline-flex;align-items:center;gap:7px}
.library-v15-quick svg{width:16px;height:16px}
.library-v15-numbers{align-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.library-v15-number,.library-v15-last{padding:19px 17px;border-radius:13px;background:#ffffff08;border:1px solid #7874b52b;min-width:0}
.library-v15-number>span,.library-v15-last>span{display:flex;align-items:center;gap:7px;color:#bcb7dc;font-weight:800;letter-spacing:.1em;font-size:9px}
.library-v15-number svg,.library-v15-last svg{width:15px;height:15px;color:#b2a3ff}
.library-v15-number strong{display:block;margin:13px 0 2px;font-size:35px;line-height:1.05;font-weight:850}
.library-v15-number small{color:#8d9db7;font-size:11px}
.library-v15-last{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px}
.library-v15-last strong{font-size:14px}
.library-v15-body{margin-top:38px}
.library-v15-titlebar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:21px;flex-wrap:wrap}
.library-v15-titlebar h2{font-size:30px;letter-spacing:-.05em;margin:5px 0 0}
.library-v15-find{display:flex;align-items:center;gap:10px;border:1px solid #3c4b69;border-radius:11px;background:#141f32;color:#a9b4cb;padding:0 14px;min-height:45px;width:min(100%,330px)}
.library-v15-find svg{width:18px;height:18px;flex:none}
.library-v15-find input{outline:0;border:0;background:transparent;color:#f5f6ff;width:100%;font-size:12px}
.library-v15-tabs{display:flex;gap:23px;align-items:center;border-bottom:1px solid #2b3853;margin-bottom:25px}
.library-v15-tabs button{border:0;border-bottom:2px solid transparent;display:inline-flex;align-items:center;gap:8px;background:transparent;padding:15px 2px;color:#9babc4;font-size:13px;font-weight:750;cursor:pointer;transition:color .18s,border-color .18s;white-space:nowrap}
.library-v15-tabs button.active{border-bottom-color:#a593ff;color:white}
.library-v15-tabs button:hover{color:white}
.library-v15-tabs button svg{width:17px;height:17px}
.library-v15-tabs button span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;background:#263752;border-radius:50%;font-size:10px;color:#d9dfff}
.library-v15-empty{display:grid;grid-template-columns:35% minmax(0,1fr);overflow:hidden;min-height:265px;background:#131f32;border:1px solid #344460;border-radius:17px}
.library-v15-empty[hidden]{display:none!important}
.library-v15-empty-art{background:radial-gradient(circle at center,#8371e847,transparent 70%),repeating-linear-gradient(125deg,transparent 0 30px,#ffffff05 31px 32px),#242443;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.library-v15-empty-art svg{height:66px;width:66px;stroke:#c5b9ff;stroke-width:1.1;transform:rotate(-10deg);filter:drop-shadow(0 14px 20px #0008)}
.library-v15-empty-art span{color:#d3c6ff;letter-spacing:.2em;font-size:10px;font-weight:800}
.library-v15-empty-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:30px clamp(22px,4vw,50px)}
.library-v15-empty-text h3{font-size:clamp(23px,3vw,36px);letter-spacing:-.05em;line-height:1.12;margin:11px 0}
.library-v15-empty-text p{color:#a5b4cc;font-size:13px;line-height:1.6;margin:0 0 19px;max-width:420px}
.library-v15-empty-text a{padding:11px 14px}
.library-v15-bottom{border-top:1px solid #283851;margin-top:29px;padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.library-v15-bottom p{display:flex;align-items:center;gap:8px;color:#8494af;font-size:11px}
.library-v15-bottom p svg{width:16px;height:16px;flex:none}
.library-v15 .library-v14-grid.works{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}
@keyframes lvUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.library-v15-head{grid-template-columns:1fr;padding:30px}.library-v15-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}.library-v15-last{grid-column:auto;display:block}.library-v15-last strong{display:block;margin-top:12px}}
@media(max-width:580px){.library-v15-head{padding:23px 19px;gap:25px}.library-v15 h1{font-size:43px;margin:18px 0 14px}.library-v15-headcopy>p{font-size:12px}.library-v15-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.library-v15-number{padding:12px}.library-v15-number strong{font-size:27px}.library-v15-last{grid-column:1/-1}.library-v15-body{margin-top:28px}.library-v15-titlebar{align-items:stretch}.library-v15-find{width:100%}.library-v15-tabs{gap:13px;overflow-x:auto}.library-v15-tabs button{font-size:11px}.library-v15-empty{grid-template-columns:1fr}.library-v15-empty-art{min-height:130px}.library-v15-empty-art svg{width:44px;height:44px}.library-v15-empty-text{padding:25px}.library-v15-bottom{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.library-v15{animation:none}.library-v15-quick a,.library-v15-empty-text a{transition:none}}
