/* Poseidon discovery: ink-blue water, pale sea glass, compact reading shelves. */
:root{--sea:#70d9ee;--sea-deep:#2491ba;--canvas:#080f1a;--surface:#111e2c;--muted:#92a7bb;--hairline:#a1dcf21c;--nav-glass:#0d1a29e8}
html[data-theme="light"]{--sea:#12789c;--sea-deep:#0d6589;--canvas:#eef5fa;--surface:#fff;--muted:#59748a;--hairline:#204c7026;--nav-glass:#f5fbffed}
body{background-color:var(--canvas);background-image:radial-gradient(ellipse at 100% 0,#14567a18,transparent 50%);color:var(--ink)}
#shell{max-width:1120px;margin:auto}.site-header,.home-view .site-header{padding:18px 28px;gap:16px;background:transparent;border-bottom:1px solid var(--hairline)}
.brand,.home-view .brand{gap:10px}.brand img,.home-view .brand img{width:38px;height:38px;border-radius:12px}.brand-wordmark{width:133px;height:37px}
.header-actions,.home-view .header-actions{gap:8px}.site-header .channel-link{display:none}.header-menu{background:var(--surface);border:1px solid var(--hairline);width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--ink)}
.header-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#main,.home-view #main{padding:24px 28px 130px;min-height:65vh}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid var(--sea);outline-offset:4px}
.app-nav{position:fixed;bottom:calc(14px + max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px)));left:50%;transform:translateX(-50%);z-index:35;width:min(calc(100% - 32px),430px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:7px;border:1px solid #8ed6ef30;border-radius:22px;background:var(--nav-glass);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 10px 45px #0006,inset 0 1px 0 #ffffff08}
.app-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;background:none;color:var(--muted);font-size:10px;min-height:47px;position:relative;border-radius:15px;padding:5px}.app-nav svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.app-nav button[aria-current="page"]{background:#6fd4ef12;color:var(--sea)}.app-nav button[aria-current="page"]::before{content:"";position:absolute;top:-7px;width:23px;height:2px;border-radius:5px;background:var(--sea);box-shadow:0 2px 13px #59d3ff99}
body.reading .app-nav{display:none}
.discovery-page svg,.browse-page svg,.personal-library svg,.profile-page svg,.updates-page svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.feature-slider{position:relative;border-radius:23px;overflow:hidden;isolation:isolate;background:#0d2839;border:1px solid #8ed5f22b;min-height:230px;touch-action:pan-y;box-shadow:0 20px 65px #0003}
#feature-content{min-height:230px;position:relative;display:flex;align-items:center;padding:22px 30px 34px;gap:24px}
.feature-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 27%;filter:blur(20px) saturate(.8);opacity:.34;z-index:-3;transform:scale(1.12)}
.feature-slider::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071a2b21,#061323d6 80%),linear-gradient(0deg,#061323e6,transparent 70%);pointer-events:none}
.feature-tide{position:absolute;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(ellipse at 18% 10%,#60dff229,transparent 65%)}
.feature-tide::after{content:"";position:absolute;width:350px;height:350px;left:-70px;top:-95px;border-radius:50%;border:1px solid #88e9fd18;box-shadow:0 0 0 35px #88e9fd08,0 0 0 70px #88e9fd05}
.feature-cover{order:2;width:118px;aspect-ratio:5/7;height:auto;object-fit:cover;border-radius:11px;box-shadow:0 15px 40px #0009;border:1px solid #b5f5ff40;transform:rotate(-3deg);margin-inline-start:auto}
.feature-copy{max-width:570px;flex:1;color:#f2f9ff;min-width:0}.feature-eyebrow{display:flex;align-items:center;gap:7px;font-size:11px;color:#9de7f3;margin-bottom:13px}.feature-eyebrow::before{content:"";width:5px;height:5px;border-radius:50%;background:#78d8ea;box-shadow:0 0 12px #6de4ff}
.feature-copy h1{font:600 23px/1.35 'Poseidon Roboto',Vazirmatn,sans-serif;letter-spacing:-.3px;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:start;overflow-wrap:anywhere}
.feature-tags{display:flex;gap:10px;font-size:10px;color:#c5d8e7;margin-bottom:19px}.feature-tags span+span{border-inline-start:1px solid #b8d9e52f;padding-inline-start:10px}
.feature-copy .primary{min-height:40px;padding:8px 15px;display:inline-flex;align-items:center;gap:14px;border-radius:10px;background:#7bd9ec;color:#0b2a3d;font-size:12px;font-weight:600;box-shadow:0 4px 20px #37c7ef16}.feature-copy .primary svg{width:17px;height:17px}
.slider-controls{position:absolute;inset:auto 24px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;direction:rtl}.slide-dots{display:flex;align-items:center;gap:6px;direction:ltr}.slide-dots button{position:relative;background:none;width:22px;height:28px;padding:0;display:grid;place-items:center}.slide-dots button::after{content:"";width:5px;height:5px;border-radius:8px;background:#d6f4ff60}.slide-dots button[aria-current]::after{width:22px;background:#8ce1f4}
.branded-slide .feature-backdrop{filter:none;opacity:.8;object-position:center;transform:none}.branded-slide #feature-content{align-items:flex-end}.branded-slide .feature-copy{max-width:60%}.branded-slide .feature-copy h1{font-family:Vazirmatn,sans-serif;font-size:24px}.branded-slide::after{background:linear-gradient(0deg,#041426,transparent 95%),linear-gradient(-90deg,#061323ba,transparent)}
.home-search{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;margin:19px 0;background:var(--surface);border:1px solid var(--hairline);border-radius:13px;color:var(--muted);font-size:12px;text-align:center}.home-search span{flex:1}.home-search svg{color:var(--sea);width:19px}.home-search kbd{border:1px solid var(--hairline);border-radius:5px;padding:1px 6px;font:11px 'Poseidon Roboto';opacity:.7}
.genre-shortcuts{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:3px 1px 9px;margin-bottom:16px}.genre-shortcuts::-webkit-scrollbar{display:none}.genre-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;flex:1;min-width:94px;min-height:94px;padding:10px 16px;border:1px solid var(--hairline);border-radius:15px;background:linear-gradient(150deg,#4bb7d412,transparent),var(--surface);color:var(--ink)}
.genre-symbol{color:#7fd9e9;display:grid;place-items:center;width:30px;height:30px;background:#61c8e212;border:1px solid #65cfe327;border-radius:9px}.symbol-1{color:#8baaf4}.symbol-2{color:#ccbbec}.symbol-3{color:#90c9ba}.genre-shortcuts strong{font-size:11px;font-weight:500}.genre-shortcuts small{font-size:9px;color:var(--muted)}
.discovery-shelf{margin:27px 0 0}.shelf-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}.shelf-heading h2{font-size:16px;font-weight:650;line-height:1.7;margin:0;position:relative;padding-inline-start:11px}.shelf-heading h2::before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:3px;border-radius:3px;background:var(--sea)}.shelf-actions>button{display:flex;align-items:center;gap:3px;font-size:10px;background:none;color:var(--muted);padding:4px 0}.shelf-heading>button svg{width:14px;height:14px;color:var(--sea)}
.cover-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5);gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:3px 1px 10px;direction:rtl}
.catalog-card,.home-view .catalog-card{min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--hairline);border-radius:13px;padding:6px;box-shadow:0 3px 15px #0001;scroll-snap-align:start;overflow:hidden}
.catalog-card .work-card-open{border-radius:8px}.catalog-card .cover-frame{position:relative;border-radius:8px;aspect-ratio:5/7;overflow:hidden;width:100%;background:var(--cover-bg)}.catalog-card .cover-frame img{display:block;width:100%;height:100%;object-fit:cover;transform:none}
.catalog-card h3,.home-view .catalog-card h3{font-family:'Poseidon Roboto',Vazirmatn,sans-serif;font-size:12px;font-weight:500;line-height:1.55;margin:9px 3px 8px;min-height:3.1em;text-align:start;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.catalog-card .work-meta,.home-view .catalog-card .work-meta{display:flex;align-items:center;justify-content:space-between;margin:auto 3px 0;padding:6px 0 0;min-height:28px;border-top:1px solid var(--hairline);font-size:9px;color:var(--muted);gap:2px}.catalog-card .work-open{width:22px;height:22px;color:var(--sea)}.catalog-card .work-open svg{width:14px;height:14px}
.cover-count{position:absolute;top:6px;left:6px;font-size:9px;padding:3px 6px;border-radius:6px;background:#061421d9;color:#e2f9ff;backdrop-filter:blur(8px);border:1px solid #a6d9ea20}.cover-status{position:absolute;bottom:0;left:0;right:0;font-size:9px;text-align:start;padding:19px 7px 6px;color:#d5f5ee;background:linear-gradient(transparent,#051421e6)}.cover-status::before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:#77d4b3;margin-inline-end:5px;vertical-align:middle}.cover-status.finished::before{background:#7ea9ed}
.resume-rail{display:grid;grid-auto-flow:column;grid-auto-columns:min(310px,70%);gap:12px;overflow-x:auto;scrollbar-width:thin;padding-bottom:8px}.resume-card{display:flex;align-items:center;gap:12px;min-width:0;width:100%;padding:12px;border:1px solid var(--hairline);border-radius:14px;background:var(--surface);text-align:start;color:var(--ink)}.resume-card>img{width:53px;height:75px;object-fit:cover;border-radius:7px;flex-shrink:0}.resume-card>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.resume-card strong{font-family:'Poseidon Roboto',Vazirmatn,sans-serif;font-size:12px;font-weight:500;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5}.resume-card small{font-size:9px;color:var(--muted)}.resume-arrow{display:grid;place-items:center;width:28px;height:28px;background:#6ccfea12;border:1px solid var(--hairline);border-radius:9px;color:var(--sea)}.resume-arrow svg{width:15px;height:15px}.mini-progress{display:block;height:3px;border-radius:3px;background:#7b9bb12e;overflow:hidden}.mini-progress i{display:block;height:100%;background:var(--sea);border-radius:3px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:7px 0 23px}.page-heading small{font:9px/1.5 'Poseidon Roboto',sans-serif;letter-spacing:2px;color:var(--muted)}.page-heading h1{font-size:26px;font-weight:650;margin:7px 0 0}.heading-emblem{display:grid;place-items:center;width:45px;height:45px;border:1px solid var(--hairline);border-radius:14px;background:#61c8e20c;color:var(--sea)}
.explore-search.field{max-width:none;width:100%;margin:0 0 17px;border-radius:13px;box-shadow:none;background:var(--surface);border-color:var(--hairline);padding:10px 13px;gap:12px}.explore-search>svg{color:var(--sea)}.explore-search input{min-width:0;font-size:15px}.explore-search button{padding:7px;border-radius:8px;background:#6acde41c;color:var(--sea);display:grid;place-items:center}.explore-search button svg{width:18px;height:18px}
.filter-types{display:flex;gap:7px;margin-bottom:16px}.filter-types button{flex:1;border:1px solid var(--hairline);background:var(--surface);color:var(--muted);border-radius:10px;padding:9px 13px;font-size:11px}.filter-types button[aria-pressed="true"]{background:var(--sea);color:var(--canvas);border-color:var(--sea);font-weight:650}
.genre-filters{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:20px;border-bottom:1px solid var(--hairline)}.genre-filters button,.series-genres button{border:1px solid var(--hairline);background:#6bbde608;color:var(--muted);font-size:10px;padding:6px 11px;border-radius:8px}.genre-filters button[aria-pressed="true"]{color:var(--sea);border-color:#72d0e960;background:#62c3e016}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0 16px;color:var(--muted);font-size:10px}.catalog-toolbar label{display:flex;align-items:center;gap:6px}.catalog-toolbar select{border:1px solid var(--hairline);border-radius:7px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:10px;padding:5px 7px}.catalog-toolbar>button{background:none;color:var(--muted);font-size:10px;padding:4px 0}.catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.shelf-empty{text-align:center;padding:55px 20px;color:var(--muted)}.shelf-empty>svg{width:46px;height:46px;color:var(--sea);opacity:.5;margin-bottom:10px}.shelf-empty h2{font-size:15px;font-weight:500;color:var(--ink);margin:8px 0}.shelf-empty p{font-size:12px;line-height:1.9;margin:8px 0 18px}.shelf-empty button{font-size:12px;padding:10px 16px}.retry-view{display:block;margin:0 auto;font-size:12px}
.personal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--hairline);border-radius:12px;margin-bottom:23px}.personal-tabs button{font-size:12px;padding:10px;border-radius:8px;color:var(--muted);background:transparent}.personal-tabs [aria-selected="true"]{background:#6bcee51a;color:var(--sea);box-shadow:inset 0 0 0 1px #6bcee529}.history-list{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.profile-page{max-width:680px;margin:auto}.profile-hero{position:relative;isolation:isolate;text-align:center;padding:30px 20px 26px;overflow:hidden}.profile-waves{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 34%,#2476972e,transparent 64%)}.profile-waves::after{content:"";position:absolute;top:-60px;left:50%;transform:translateX(-50%);width:290px;height:290px;border-radius:50%;border:1px solid #7dcde50d;box-shadow:0 0 0 28px #7dcde506,0 0 0 56px #7dcde504}
.profile-avatar{width:86px;height:86px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(140deg,#2d627d,#143044);color:#c1f1ff;margin:0 auto 14px;border:1px solid #8ce5f25c;box-shadow:0 0 0 5px #6de3ff06,0 9px 30px #0003;font-size:32px;overflow:hidden;transform:rotate(-5deg)}.profile-avatar>span,.profile-avatar img{transform:rotate(5deg)}.profile-avatar img{width:114%;height:114%;object-fit:cover}.profile-hero h1{font-family:'Poseidon Roboto',Vazirmatn,sans-serif;font-size:23px;margin:0 0 6px;font-weight:600;overflow-wrap:anywhere}.profile-hero p{font-size:12px;color:var(--sea);margin:0 0 7px}.profile-hero>small{font-size:9px;color:var(--muted)}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--hairline);border-radius:13px;background:var(--surface);padding:15px 0;margin-bottom:24px}.profile-stats>div{display:flex;flex-direction:column;gap:5px;text-align:center}.profile-stats>div+div{border-inline-start:1px solid var(--hairline)}.profile-stats strong{font-size:21px;font-weight:500;color:var(--sea);line-height:1.4}.profile-stats span{font-size:10px;color:var(--muted)}
.profile-group{margin:22px 0;border:1px solid var(--hairline);border-radius:14px;background:var(--surface);overflow:hidden}.profile-group h2{font-size:10px;font-weight:500;margin:0;padding:13px 16px;color:var(--muted);border-bottom:1px solid var(--hairline)}.profile-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:14px 16px;background:none;color:var(--ink);text-align:start}.profile-row+.profile-row{border-top:1px solid var(--hairline)}.profile-row>svg:first-child,.row-icon{color:var(--sea)}.profile-row>span:not(.row-icon){flex:1;font-size:12px}.profile-row>svg:last-child{width:14px;color:var(--muted)}.profile-row small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.profile-row>small{margin:0;white-space:nowrap;font-size:10px}
.preference-switch{position:relative;width:39px;height:23px;flex-shrink:0;border:1px solid var(--hairline);border-radius:20px;background:#8194a92b;padding:3px;direction:ltr}.preference-switch i{display:block;width:15px;height:15px;background:#8b9eae;border-radius:50%;transition:transform .2s}.preference-switch[aria-checked="true"]{background:#69cde425;border-color:#70d5e666}.preference-switch[aria-checked="true"] i{transform:translateX(15px);background:var(--sea)}
.profile-support{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0 20px}.profile-support img{border-radius:12px}.profile-support>div{flex:1}.profile-support strong{font-size:12px;font-weight:500}.profile-support p{font-size:10px;color:var(--muted);margin:6px 0}.profile-support a{width:100%;font-size:12px;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:15px;padding:11px;background:#64d4e51a;border:1px solid #63d7e633;color:var(--sea)}
.page-caption{font-size:11px;color:var(--muted);margin-top:-5px;margin-bottom:23px}.update-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--hairline);padding:12px;border-radius:12px;width:100%;margin-bottom:10px;text-align:start}.update-row>img{border-radius:6px;width:45px;height:63px;object-fit:cover}.update-row>span{flex:1;min-width:0}.update-row strong{font-size:12px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}.update-row small{font-size:10px;color:var(--sea);display:block;margin-top:5px}.update-row time{font-size:9px;color:var(--muted);white-space:nowrap}.update-row>svg{width:15px;color:var(--sea)}
.series-genres{display:flex;gap:6px;flex-wrap:wrap;margin:11px 0}.series-genres>small{font-size:10px;color:var(--muted)}
#site-menu{padding:0;inset:0 0 0 auto;margin:0;width:min(330px,88vw);max-width:88vw;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;border-inline-end:1px solid var(--hairline);background:var(--canvas);overflow-y:auto;overscroll-behavior:contain;z-index:60;box-shadow:-20px 0 70px #0005}#site-menu::backdrop{background:#020913b5;backdrop-filter:blur(5px)}.menu-top{padding:25px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--hairline)}.menu-top strong{font-size:15px;color:var(--sea);font-family:'Poseidon Roboto',sans-serif}.menu-top button{width:34px;height:34px;display:grid;place-items:center;background:var(--surface);border-radius:10px;color:var(--muted)}.menu-top svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.menu-links{padding:15px}.menu-links>button{display:flex;align-items:center;gap:13px;min-height:49px;padding:10px 13px;width:100%;background:none;font-size:13px;color:var(--ink);text-align:start;border-radius:10px}.menu-links>button:hover{background:var(--surface)}.menu-links svg{width:19px;height:19px;stroke:var(--sea);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.menu-links h2{font-size:10px;color:var(--muted);font-weight:500;padding:17px 13px 8px;margin:10px 0 0;border-top:1px solid var(--hairline)}
@media(min-width:701px){.browse-page,.personal-library,.updates-page{min-height:65vh}.feature-slider{min-height:230px}#feature-content{min-height:230px}.feature-cover{width:118px}.profile-page{padding-top:10px}}
@media(max-width:700px){
  html:has(#site-menu[open]){overflow:hidden}
  .site-header,.home-view .site-header{padding:13px 16px;gap:10px}.brand img,.home-view .brand img{width:32px;height:32px;border-radius:10px}.brand-wordmark{width:114px;height:32px}.header-actions,.home-view .header-actions{gap:7px}.header-menu{width:34px;height:34px;border-radius:10px}.site-header .theme-toggle{width:61px;flex-basis:61px;height:34px;padding:2px}.site-header .theme-option{width:26px;height:26px}.site-header .theme-option svg{width:15px;height:15px}.site-header .theme-thumb{top:3px;left:3px;width:26px;height:26px}html[data-theme="light"] .site-header .theme-thumb{transform:translateX(27px)}
  #main,.home-view #main{padding:16px 14px 118px}.feature-slider{border-radius:15px;min-height:190px}#feature-content{min-height:190px;padding:14px 16px 28px;gap:14px}.feature-cover{width:82px;border-radius:7px;transform:rotate(-3deg)}.feature-copy{max-width:none}.feature-copy h1{font-size:16px;line-height:1.35;margin-bottom:8px;letter-spacing:0;-webkit-line-clamp:3}.feature-eyebrow{font-size:8px;margin-bottom:7px}.feature-tags{font-size:8px;gap:6px;margin-bottom:10px}.feature-tags span+span{padding-inline-start:6px}.feature-copy .primary{font-size:9px;min-height:30px;padding:6px 9px;gap:8px;border-radius:8px}.feature-copy .primary svg{width:14px;height:14px}.slider-controls{inset:auto 13px 4px}.branded-slide .feature-copy{max-width:70%}.branded-slide .feature-copy h1{font-size:18px}.home-search{padding:12px;margin:15px 0;font-size:10px;border-radius:11px;gap:8px}.home-search svg{width:17px;height:17px}.home-search kbd{display:none}.genre-shortcuts{gap:8px;margin-bottom:4px}.genre-shortcuts button{min-width:77px;min-height:86px;padding:10px 12px;gap:6px;border-radius:12px}.genre-shortcuts strong{font-size:10px}.genre-shortcuts small{font-size:8px}.genre-symbol{width:27px;height:27px;border-radius:8px}.genre-symbol svg{width:17px;height:17px}
  .discovery-shelf{margin-top:23px}.shelf-heading{margin-bottom:12px}.shelf-heading h2{font-size:13px;padding-inline-start:10px}.shelf-actions>button{font-size:9px}.cover-rail{grid-auto-columns:calc((100% - 20px)/2.5);gap:10px;scrollbar-width:none;padding-bottom:6px}.catalog-card,.home-view .catalog-card{border-radius:11px;padding:5px}.catalog-card .cover-frame{border-radius:6px}.catalog-card h3,.home-view .catalog-card h3{font-size:11px;line-height:1.5;margin:8px 2px;min-height:3em}.catalog-card .work-meta,.home-view .catalog-card .work-meta{font-size:8px;min-height:25px;padding-top:5px}.cover-count{font-size:8px;top:5px;left:5px;padding:2px 4px;border-radius:4px}.cover-status{font-size:8px;padding-inline:5px}.catalog-card .work-open{width:19px;height:19px}.catalog-card .work-open svg{width:12px;height:12px}.resume-rail{grid-auto-columns:minmax(210px,70%);gap:10px;scrollbar-width:none}.resume-card{padding:10px;border-radius:12px;gap:11px}.resume-card strong{font-size:11px}.resume-card small{font-size:9px}.resume-card>img{width:46px;height:65px}.resume-card>span:nth-child(2){gap:5px}
  .page-heading{margin:7px 2px 21px}.page-heading h1{font-size:23px}.page-heading small{font-size:8px;letter-spacing:1.5px}.heading-emblem{width:39px;height:39px;border-radius:12px}.explore-search.field{padding:9px 10px;gap:9px}.explore-search input{font-size:16px}.explore-search input::placeholder{font-size:10px}.explore-search>svg{width:18px;height:18px}.filter-types{gap:6px;margin-bottom:13px}.filter-types button{padding:8px 5px;font-size:10px;border-radius:9px}.genre-filters{gap:6px;padding-bottom:17px}.genre-filters button{font-size:9px;padding:5px 9px;border-radius:7px}.catalog-toolbar{font-size:9px;gap:7px;margin:15px 0}.catalog-toolbar>button{font-size:9px}.catalog-toolbar select{font-size:9px;padding:4px}.catalog-grid,.home-view .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 8px}.catalog-grid .catalog-card{padding:4px;border-radius:9px}.catalog-grid .catalog-card h3{font-size:10px;margin:7px 1px}.catalog-grid .cover-count{font-size:7px;padding:2px 3px;left:4px;top:4px}.catalog-grid .cover-status{font-size:7px}.catalog-grid .work-meta{font-size:7px}.catalog-grid .work-open{width:17px;height:17px}.history-list{grid-template-columns:1fr}.personal-tabs button{font-size:11px;padding:9px}.profile-hero{padding:25px 15px}.profile-avatar{width:78px;height:78px;border-radius:25px}.profile-hero h1{font-size:21px}.profile-stats{padding:13px 0;margin-bottom:21px}.profile-stats strong{font-size:19px}.profile-stats span{font-size:9px}.profile-group{margin:18px 0}.profile-row{min-height:58px;padding:13px 14px;gap:10px}.profile-row>span:not(.row-icon){font-size:11px}.profile-support{padding-inline:2px}.update-row{padding:10px;gap:9px}.update-row strong{font-size:11px}.update-row time{font-size:8px}.update-row>img{width:39px;height:55px}.update-row>svg{width:13px}.app-nav{width:calc(100% - 28px);max-width:400px;border-radius:19px;padding:6px}.app-nav button{min-height:44px;font-size:9px;border-radius:13px}.app-nav svg{width:20px;height:20px}
}
@media(max-width:350px){.brand-wordmark{width:96px;height:28px}.site-header,.home-view .site-header{padding-inline:12px}.brand,.home-view .brand{gap:6px}.feature-cover{width:74px}.feature-copy h1{font-size:14px}#feature-content{gap:10px;padding-inline:14px}.catalog-grid,.home-view .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats span{font-size:8px}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.catalog-card,.home-view .catalog-card{transition:border-color .18s,transform .18s}.catalog-card:hover,.home-view .catalog-card:hover{border-color:#75def260;transform:translateY(-2px)}.feature-cover{transition:transform .3s}.feature-slider:hover .feature-cover{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){.preference-switch i{transition:none}}

/* Compact ocean edition: lit water, warm rating stars and denser controls. */
body{isolation:isolate;background-image:radial-gradient(ellipse at 100% 0%,#1765842e,transparent 54%),radial-gradient(ellipse at 0% 63%,#49409312,transparent 48%)}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 9% 12%,#34c8e60a,transparent 45%),repeating-conic-gradient(from 170deg at 80% -35%,transparent 0deg 12deg,#58c7e704 13deg 15deg,transparent 16deg 26deg);opacity:.8}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cg fill='none' stroke='%2359bed8' stroke-opacity='.06' stroke-width='.7'%3E%3Cpath d='M-200 180Q180-60 430 180T1100 180M-200 199Q180-41 430 199T1100 199M-200 220Q180-20 430 220T1100 220M-200 660Q100 400 430 660T1100 660M-200 680Q100 420 430 680T1100 680'/%3E%3C/g%3E%3C/svg%3E");background-size:900px 900px}
html[data-theme="light"] body::after{opacity:.65}html[data-theme="light"] body::before{opacity:.45}
.feature-slider{overflow:clip;box-shadow:0 12px 35px #0003,0 0 35px #4acbe909,inset 0 1px 0 #c3f6ff0d;cursor:grab}.feature-slider:active{cursor:grabbing}#feature-content{overflow:clip}.feature-tide{overflow:hidden;background:radial-gradient(ellipse at 15% 0%,#50d8f42b,transparent 65%),radial-gradient(ellipse at 90% 90%,#6d5cbd12,transparent 60%)}
.slider-controls{inset:auto 18px 5px;justify-content:flex-start;pointer-events:none}.slide-dots{gap:2px;pointer-events:auto}.slide-dots button{width:25px;height:26px}.slide-dots button::after{width:4px;height:4px}.slide-dots button[aria-current]::after{width:17px;height:4px;box-shadow:0 0 9px #84e7ff44}.feature-copy .primary{background:linear-gradient(115deg,#a1ebf3,#68cfe9);box-shadow:0 3px 13px #4de8ff19}
.shelf-actions{display:flex;align-items:center;gap:9px}.shelf-actions>button{display:flex;align-items:center;gap:2px;background:none;padding:4px 0;color:var(--muted);font-size:10px}.shelf-actions>button svg{width:13px;height:13px;color:var(--sea)}
.rail-controls{display:flex;gap:3px;direction:rtl}.rail-controls button{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#71c9e409;border:1px solid #7ccfe42b;color:var(--sea);padding:0}.rail-controls button:first-child svg{transform:rotate(180deg)}.rail-controls button svg{width:13px;height:13px}.rail-controls button:disabled{opacity:.25}.rail-controls button:not(:disabled):hover{border-color:#7ad7ea66;background:#7ad7ea18}
.cover-rail,.resume-rail{cursor:grab;scroll-behavior:smooth;touch-action:pan-x pan-y;overscroll-behavior-inline:contain}.cover-rail img,.resume-rail img{-webkit-user-drag:none;user-select:none}.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}.is-dragging button{cursor:grabbing}
.resume-card{padding:8px 9px;gap:8px;border-radius:11px;background:linear-gradient(120deg,#79d7ee08,transparent 85%),var(--surface);box-shadow:inset 0 1px 0 #d3f8ff05}.resume-card>img{width:36px;height:50px;border-radius:5px}.resume-card strong{font-size:11px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.4}.resume-card>span:nth-child(2){gap:6px}.resume-card .resume-details{display:flex;align-items:center;gap:6px;justify-content:space-between;white-space:nowrap;font-size:8px}.resume-details time{font-size:7px;opacity:.65}.resume-arrow{width:23px;height:23px;border-radius:7px}.resume-arrow svg{width:12px;height:12px}.mini-progress{height:2px}.mini-progress i{box-shadow:0 0 8px #6ce8fa44}
.catalog-card,.home-view .catalog-card{background:linear-gradient(155deg,#74d2e50c,transparent 42%),var(--surface);border-color:#87cfec29;box-shadow:0 4px 18px #0002,inset 0 1px 0 #cef6ff08}.catalog-card:hover,.home-view .catalog-card:hover{box-shadow:0 6px 24px #0003,0 0 20px #4dd6eb0a}.cover-status{inset:auto 5px 5px auto;max-width:calc(100% - 10px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:3px 6px;border-radius:5px;border:1px solid #78f2c64f;background:#06402fe8;color:#adffdb;font-size:9px;text-shadow:0 0 9px #45f2bb45;box-shadow:0 0 13px #36e0a523;backdrop-filter:blur(8px);line-height:1.5}.cover-status::before{background:#80ffd1;box-shadow:0 0 6px #57ffbf99;width:4px;height:4px}.cover-status.finished{color:#d0e8ff;border-color:#7cb8ff66;background:#163b65ed;box-shadow:0 0 12px #539fff25}.cover-status.finished::before{background:#a4d0ff;box-shadow:0 0 6px #80bfff88}.cover-status.hiatus{color:#ffe5ab;border-color:#ffd07766;background:#4b3512ed;box-shadow:0 0 12px #ffd07716}.cover-status.hiatus::before{background:#ffd077;box-shadow:0 0 6px #ffd07766}
.discovery-shelf:nth-of-type(3n) .shelf-heading h2::before{background:#9caff5;box-shadow:0 0 10px #91a2ff40}.shelf-heading h2::before{box-shadow:0 0 10px #5ddbf950}
.rating-display{display:flex;align-items:center;gap:5px;direction:ltr;font-family:'Poseidon Roboto',Vazirmatn,sans-serif;color:#efc96e;white-space:nowrap;line-height:1.3}.catalog-card .rating-display{margin:0 3px 7px;font-size:10px;gap:4px}.rating-stars{position:relative;display:inline-block;direction:ltr;font-size:12px;letter-spacing:1px;line-height:1;flex-shrink:0;color:#70869955}.rating-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;color:#f2c96c;text-shadow:0 0 9px #efbc602a;white-space:nowrap}.rating-value{font-size:10px;font-weight:600}.rating-display small{font-size:8px;color:var(--muted)}
.series-rating{margin-top:9px;padding:9px 0 1px;border-top:1px solid var(--line)}.series-rating-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.series-rating-head>span:first-child{font-size:10px;color:var(--series-muted)}.rate-work{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px}.rate-work>span{font-size:10px;color:var(--series-muted);margin-inline-end:auto}.rate-stars{display:flex;gap:1px;flex-shrink:0}.rate-stars button{width:28px;height:30px;display:grid;place-items:center;background:none;color:#7d92a955;border-radius:6px;padding:3px}.rate-stars svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.35;fill:transparent;stroke-linejoin:round}.rate-stars .selected,.rate-stars button:hover{color:#f4cc79;filter:drop-shadow(0 0 4px #e9b34a20)}.rate-stars .selected svg{fill:currentColor}.clear-rating{font-size:9px;color:var(--series-muted);background:none;padding:3px}
html[data-theme="light"] .cover-status{color:#bcffdf;background:#07573fe8}html[data-theme="light"] .rating-display{color:#97681a}html[data-theme="light"] .rating-fill{color:#c58a24}
@media(max-width:700px){
  .shelf-actions{gap:7px}.shelf-actions>button{font-size:8px}.shelf-actions>button>svg{display:none}.rail-controls{gap:3px}.rail-controls button{width:25px;height:25px;border-radius:7px}.rail-controls button svg{width:12px;height:12px}.shelf-heading h2{font-size:12px}.cover-status{font-size:8px;padding:2px 5px}.catalog-grid .cover-status{font-size:7px;padding:2px 4px}.catalog-card .rating-display{font-size:9px;gap:3px;margin:0 2px 6px}.rating-stars{font-size:10px;letter-spacing:.5px}.rating-value{font-size:9px}.rating-display small{font-size:7px}.catalog-grid .rating-stars{font-size:8px}.catalog-grid .rating-value{font-size:8px}.catalog-grid .rating-display small{display:none}
  .resume-card{padding:8px;gap:7px}.resume-card>img{width:32px;height:45px}.resume-card>span:nth-child(2){gap:5px}.resume-card strong{font-size:10px}.resume-card .resume-details{font-size:8px}.resume-details time{display:none}.resume-arrow{width:21px;height:21px}.resume-arrow svg{width:11px;height:11px}
  .app-nav{width:min(calc(100% - 44px),340px);padding:4px;border-radius:16px;border-color:#9ce2f52b;background:linear-gradient(120deg,#4c9fb814,#937dc10a),rgba(12,28,43,.68);box-shadow:0 8px 28px #0005,inset 0 1px 0 #d6f8ff13;backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);bottom:calc(12px + max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px)))}.app-nav button{min-height:35px;padding:3px;gap:2px;font-size:8px;border-radius:11px}.app-nav svg{width:17px;height:17px;stroke-width:1.5}.app-nav button[aria-current="page"]{background:#72d8ee0d}.app-nav button[aria-current="page"]::before{top:-4px;width:17px;height:1px;box-shadow:0 1px 7px #74ecff99}html[data-theme="light"] .app-nav{background:linear-gradient(120deg,#6bd2e711,#a59ad011),#f5fbffb3;box-shadow:0 8px 28px #204e7020,inset 0 1px 0 #fff9}
  .app-nav button{font-size:9px;line-height:1.1}.series-rating-head>span:first-child{font-size:9px}.rate-work>span{font-size:9px}.rate-stars button{width:25px;height:28px}.rate-stars svg{width:18px;height:18px}.branded-slide #feature-content{padding-bottom:34px}
}
@media(prefers-reduced-motion:reduce){.cover-rail,.resume-rail{scroll-behavior:auto}}
