:root{
 --bg:#050913;--bg2:#09121e;--surface:#0d1827;--surface2:#122235;--surface3:#182e48;
 --text:#f7f9fd;--muted:#8ea2b9;--subtle:#60738a;--accent:#1dd4ff;--accent2:#6d7cff;--good:#58e4a8;--warn:#ffd56d;--danger:#ff7287;
 --border:rgba(255,255,255,.085);--shadow:0 24px 70px rgba(0,0,0,.40);--shadow-soft:0 12px 34px rgba(0,0,0,.24);
 --radius:22px;--safe-bottom:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{overflow-x:hidden}button,input,textarea,select{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}input,textarea,select{color:var(--text)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-3;background:radial-gradient(800px 400px at 50% -100px,rgba(29,212,255,.16),transparent 62%),radial-gradient(600px 420px at 110% 20%,rgba(109,124,255,.12),transparent 70%),linear-gradient(180deg,#050913 0%,#07101b 100%)}
.grain{position:fixed;inset:0;opacity:.025;pointer-events:none;z-index:99;background-image:radial-gradient(rgba(255,255,255,.7) .5px,transparent .5px);background-size:4px 4px}.ambient{position:fixed;border-radius:999px;filter:blur(85px);opacity:.14;pointer-events:none;z-index:-2}.ambient-a{width:250px;height:250px;left:-90px;top:16%;background:#1aa7df}.ambient-b{width:320px;height:320px;right:-140px;bottom:10%;background:#626dff}
.app-shell{position:relative;min-height:100vh}.screen{width:min(1120px,100%);margin:0 auto;padding:14px 14px calc(112px + var(--safe-bottom))}.home-pad{padding-top:14px}.topbar,.home-top{display:flex;align-items:center;gap:11px;margin:4px 0 15px}.home-top{justify-content:space-between}.topbar-copy{min-width:0}.brand{font-weight:950;letter-spacing:.04em;font-size:20px}.brand-sub{font-size:10px;color:var(--muted);margin-top:3px}.brand-mark{display:inline-flex;gap:8px;align-items:center}.back-btn,.round-btn{width:44px;height:44px;border-radius:15px;border:1px solid var(--border);background:rgba(15,30,47,.88);display:grid;place-items:center;box-shadow:var(--shadow-soft);flex:none}.back-btn{font-size:25px}.round-btn{margin-left:auto}
.hero{position:relative;overflow:hidden;min-height:300px;border:1px solid rgba(255,255,255,.08);border-radius:30px;background:#0d1827;box-shadow:var(--shadow);margin-bottom:15px}.hero-media{position:absolute;inset:0}.hero-media img,.detail-back-img img,.character-bg-img img{width:100%;height:100%;object-fit:cover;display:block}.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,8,14,.08),rgba(3,8,14,.14) 35%,rgba(3,8,14,.95) 100%),linear-gradient(90deg,rgba(10,28,45,.34),transparent 70%)}.hero-content{position:absolute;left:22px;right:22px;bottom:22px;max-width:710px}.eyebrow{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:#9cecff;font-weight:950}.hero h1{font-size:28px;line-height:1.02;margin:8px 0}.hero-meta{font-size:12px;color:#d5deea}.hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.primary-btn,.ghost-btn,.soft-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 15px;border-radius:14px;min-height:42px;font-size:11px;font-weight:950}.primary-btn{background:linear-gradient(135deg,var(--accent),#338fff);box-shadow:0 14px 30px rgba(29,212,255,.14)}.ghost-btn,.soft-btn{background:rgba(255,255,255,.065);border:1px solid var(--border)}.ghost-btn.good{color:#9affd5;border-color:rgba(88,228,168,.34)}.danger-btn{background:rgba(255,114,135,.1);border:1px solid rgba(255,114,135,.22);color:#ffc6cf}
.searchbar{display:flex;align-items:center;gap:10px;height:56px;padding:0 10px 0 14px;border:1px solid var(--border);border-radius:18px;background:rgba(13,28,44,.92);backdrop-filter:blur(14px);box-shadow:var(--shadow-soft);margin-bottom:13px}.search-ico{font-size:21px;color:var(--muted)}.searchbar input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:13px}.search-submit{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--accent),#338fff);font-size:19px;font-weight:950}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 18px}.quick-tile{min-height:84px;display:grid;grid-template-columns:31px 1fr 18px;align-items:center;gap:9px;text-align:left;padding:14px;border-radius:18px;background:linear-gradient(145deg,rgba(18,39,59,.98),rgba(9,20,33,.98));border:1px solid var(--border);box-shadow:var(--shadow-soft)}.quick-tile>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.quick-tile>b,.quick-tile span b{font-size:11px}.quick-tile small{font-size:8px;color:var(--muted);margin-top:3px}.quick-tile{font-size:20px}.quick-tile::first-letter{font-size:20px}.quick-tile>span:last-of-type{font-size:12px}.quick-tile>span:nth-child(2) b{font-size:11px}.quick-tile>span:nth-child(2) small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-tile{color:var(--text)}
.section{margin:22px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:10px}.section-head h2{font-size:16px;line-height:1.1;margin:0;font-weight:950}.section-head small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.link-btn{font-size:10px;color:#8fe5ff;font-weight:900}.rail{display:grid;grid-auto-flow:column;grid-auto-columns:152px;gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.rail::-webkit-scrollbar{display:none}.anime-card{text-align:left;min-width:0;width:100%;display:block}.poster-wrap{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(145deg,#172c45,#0a1626);border:1px solid rgba(255,255,255,.07);box-shadow:0 14px 30px rgba(0,0,0,.22);aspect-ratio:2/3}.poster-wrap img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;image-rendering:auto;backface-visibility:hidden;transform:translateZ(0);transition:transform .25s ease}.anime-card:active .poster-wrap img{transform:scale(.985)}.card-badges{position:absolute;top:7px;left:7px;right:7px;display:flex;justify-content:space-between;gap:6px}.badge{padding:5px 7px;border-radius:9px;background:rgba(4,10,18,.8);backdrop-filter:blur(10px);font-size:9px;font-weight:950}.badge.status{color:#c0efff;margin-left:auto}.card-title{font-size:12px;line-height:1.3;font-weight:950;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{font-size:9px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-code{font-size:8px;color:var(--subtle);margin-top:3px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.genre-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.genre-tile{display:grid;grid-template-columns:43px 1fr 17px;align-items:center;gap:8px;padding:12px;border-radius:17px;text-align:left;background:linear-gradient(145deg,var(--surface),#0b1725);border:1px solid var(--border)}.genre-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(29,212,255,.10),rgba(109,124,255,.11));font-size:19px}.genre-tile b{font-size:11px}.genre-tile small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.genre-tile strong{color:#7bdfff}.collection-grid-pro{display:grid;grid-template-columns:1fr 1fr;gap:10px}.collection-pro{position:relative;display:grid;grid-template-columns:38px 1fr 15px;grid-template-rows:auto auto;gap:3px 9px;align-items:center;text-align:left;padding:13px;border-radius:18px;background:linear-gradient(145deg,rgba(17,36,55,.96),rgba(9,19,31,.97));border:1px solid var(--border)}.collection-pro>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(29,212,255,.08);font-size:19px}.collection-pro b{font-size:11px}.collection-pro small{font-size:8px;color:var(--muted)}.collection-pro strong{grid-column:3;grid-row:1/3;color:#8ce7ff;font-size:17px}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 15px}.tab{padding:11px 7px;border-radius:13px;background:var(--surface);border:1px solid var(--border);font-size:10px;font-weight:900}.tab.active{background:linear-gradient(135deg,rgba(29,212,255,.15),rgba(109,124,255,.13));border-color:rgba(29,212,255,.3)}.list-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:8px 0 12px}.list-heading b{font-size:13px}.list-heading small{display:block;color:var(--muted);font-size:8px;margin-top:4px}.count-muted{font-size:9px;color:var(--muted)}.pager{display:flex;align-items:center;justify-content:center;gap:9px;margin:18px 0}.pager button{width:42px;height:40px;border-radius:12px;background:var(--surface);border:1px solid var(--border);font-size:21px}.pager button:disabled{opacity:.25}
.filter-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-radius:15px;background:rgba(255,255,255,.045);border:1px solid var(--border);font-size:11px;font-weight:900;margin-bottom:9px}.filter-panel{padding:13px;border-radius:18px;background:linear-gradient(145deg,rgba(16,31,48,.97),rgba(8,18,30,.98));border:1px solid var(--border);margin-bottom:13px}.filter-panel.hidden{display:none}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:8px;color:var(--muted)}.filter-grid select,.filter-grid input{height:40px;padding:0 9px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid var(--border);outline:0;font-size:10px}.filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}.search-count{font-size:10px;color:var(--muted);margin:9px 0}
.detail-cover{position:relative;margin:-2px -14px 14px;height:470px;overflow:hidden}.detail-backdrop{position:absolute;inset:0;filter:saturate(.98)}.cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,9,15,.06),rgba(3,9,15,.18) 27%,rgba(3,9,15,.95) 94%),linear-gradient(90deg,rgba(10,24,38,.26),transparent 75%)}.detail-head{position:absolute;left:17px;right:17px;bottom:15px;display:grid;grid-template-columns:124px 1fr;gap:14px;align-items:end}.detail-poster{width:124px;height:186px;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow)}.detail-poster img{width:100%;height:100%;object-fit:cover;backface-visibility:hidden;transform:translateZ(0)}.detail-main{min-width:0}.detail-main h1{font-size:27px;line-height:1.03;margin:7px 0}.detail-meta{font-size:11px;color:#d3deea;line-height:1.45}.detail-submeta{font-size:9px;color:var(--muted);margin-top:4px}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 13px}.detail-panel{padding:15px;border-radius:20px;background:linear-gradient(145deg,rgba(15,30,47,.97),rgba(8,18,30,.98));border:1px solid var(--border);box-shadow:var(--shadow-soft);margin-bottom:12px}.panel-title{font-size:14px;font-weight:950;margin-bottom:10px}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.panel-title-row .panel-title{margin:0}.description{font-size:12px;line-height:1.7;color:#cdd6e2;margin:0;white-space:pre-line}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.chip,.mini-pill{padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.055);border:1px solid var(--border);font-size:9px;color:#d7e0ec}.detail-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.fact{padding:10px;border-radius:12px;background:rgba(255,255,255,.033);border:1px solid var(--border)}.fact b{display:block;font-size:8px;color:var(--muted);font-weight:800}.fact span{display:block;font-size:10px;margin-top:3px}
.rating-widget{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding:11px;border-radius:14px;background:rgba(29,212,255,.055);border:1px solid rgba(29,212,255,.14)}.rating-widget small{font-size:8px;color:var(--muted)}.stars{display:flex;gap:2px}.star,.review-star{font-size:20px;color:#51647b;padding:0}.star.on,.review-star.on{color:#ffd361}.franchise-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;list-style:none;padding:0;margin:8px 0 0;width:100%;box-sizing:border-box}.franchise-item{display:block;list-style:none;min-width:0;width:100%;margin:0;padding:0;box-sizing:border-box}.franchise-item::marker{content:""}.franchise-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:52px;box-sizing:border-box;padding:10px 12px;border-radius:14px;text-align:left;background:rgba(255,255,255,.035);border:1px solid var(--border);overflow:hidden}.franchise-row.active{background:rgba(29,212,255,.08);border-color:rgba(29,212,255,.25)}.franchise-copy{display:flex;align-items:center;gap:10px;flex:1;min-width:0;overflow:hidden;white-space:nowrap}.franchise-row b{display:block;flex:0 1 auto;min-width:0;max-width:65%;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.franchise-row small{display:block;flex:1;min-width:0;color:var(--muted);font-size:9px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.franchise-score{display:block;flex:0 0 42px;width:42px;text-align:right;font-size:12px;font-weight:800;white-space:nowrap}.franchise-row strong{font-size:18px;color:#7bdfff}.season-list{display:grid;gap:8px}.season-tile{display:grid;grid-template-columns:45px 1fr 14px;gap:10px;align-items:center;padding:9px;border-radius:15px;text-align:left;background:rgba(255,255,255,.035);border:1px solid var(--border)}.season-tile.active{background:rgba(29,212,255,.08);border-color:rgba(29,212,255,.25)}.season-cover{width:45px;height:60px;border-radius:10px;overflow:hidden}.season-cover img{width:100%;height:100%;object-fit:cover}.season-tile b{font-size:11px}.season-tile small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.season-tile strong{font-size:19px;color:#7bdfff}.episode-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:10px}.episode{padding:11px 4px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid var(--border);display:flex;flex-direction:column;align-items:center;gap:2px}.episode b{font-size:12px}.episode small{font-size:8px;color:var(--muted)}.episode.off{opacity:.45}
.character-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}.character-row::-webkit-scrollbar{display:none}.character-card{width:106px;flex:0 0 106px;text-align:left}.char-img{width:106px;height:137px;border-radius:15px;overflow:hidden;background:var(--surface2);border:1px solid var(--border)}.char-img img{width:100%;height:100%;object-fit:contain;object-position:center top;display:block;backface-visibility:hidden;transform:translateZ(0)}.character-card-name{font-size:10px;font-weight:950;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.character-card small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-item{padding:8px;border-radius:17px;background:linear-gradient(145deg,rgba(15,29,45,.97),rgba(9,19,31,.97));border:1px solid var(--border);text-align:left}.character-item .char-img{width:100%;height:190px}.character-item .character-card-name{font-size:11px}.character-hero{position:relative;min-height:500px;border-radius:27px;overflow:hidden;background:#0b1624;box-shadow:var(--shadow);margin-bottom:13px}.character-bg{position:absolute;inset:-3%;filter:blur(24px) saturate(.72);transform:scale(1.08);opacity:.72}.character-bg img{width:100%;height:100%;object-fit:cover;display:block}.character-hero-art{position:absolute;inset:22px 10% 86px;z-index:1;display:grid;place-items:center;pointer-events:none}.character-hero-art .image-shell{width:min(100%,420px);height:100%;display:grid;place-items:center;background:transparent;overflow:visible}.character-hero-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block;filter:drop-shadow(0 22px 36px rgba(0,0,0,.42));backface-visibility:hidden;transform:translateZ(0)}.character-hero:before{content:"";position:absolute;inset:12% 10% 18%;background:radial-gradient(circle,rgba(255,255,255,.13),transparent 63%);z-index:1;pointer-events:none}.character-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,8,14,.02),rgba(4,8,14,.10) 42%,rgba(4,8,14,.97) 100%);z-index:2}.character-hero-info{position:absolute;left:18px;right:18px;bottom:19px;z-index:3}.character-hero-info h1{font-size:33px;line-height:1.03;margin:6px 0}.native-name{font-size:10px;color:#ccd6e3}
.review{padding:11px 0;border-bottom:1px solid var(--border)}.review:last-child{border-bottom:0}.review-top{display:flex;justify-content:space-between;gap:10px}.review-top b{font-size:10px}.review-top span{font-size:9px;color:#ffd361}.review p{font-size:10px;line-height:1.55;color:#ced7e3;margin:6px 0 5px}.danger-link{color:#ff9aaa}.review-form{margin-top:13px;padding-top:12px;border-top:1px solid var(--border)}.review-stars{display:flex;gap:2px;margin-bottom:7px}.review-star{font-size:22px}.review-form textarea{width:100%;min-height:90px;padding:11px;border-radius:13px;background:rgba(255,255,255,.04);border:1px solid var(--border);outline:0;resize:vertical;font-size:10px;margin-bottom:8px}.profile-hero{display:flex;align-items:center;gap:13px;padding:17px;border-radius:21px;background:linear-gradient(145deg,#142a42,#0d1929);border:1px solid var(--border);box-shadow:var(--shadow-soft)}.avatar-xl{width:67px;height:67px;border-radius:21px;display:grid;place-items:center;background:linear-gradient(135deg,#1dd4ff,#6d7cff);font-size:26px;font-weight:950}.profile-name{font-size:18px;font-weight:950}.profile-user{font-size:10px;color:var(--muted);margin-top:3px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:11px 0}.profile-stats>div{padding:12px 8px;text-align:center;border-radius:15px;background:var(--surface);border:1px solid var(--border)}.profile-stats b{display:block;font-size:18px}.profile-stats span{display:block;font-size:8px;color:var(--muted);margin-top:4px}.langs{display:flex;gap:8px;flex-wrap:wrap}.lang-btn{padding:10px 11px;border-radius:12px;background:var(--surface2);border:1px solid var(--border);font-size:10px}.lang-btn.active{background:rgba(29,212,255,.13);border-color:rgba(29,212,255,.36)}
.image-shell{position:relative;overflow:hidden;contain:paint}.image-shell img{display:block;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.image-shell.broken{background:linear-gradient(145deg,#15263b,#091424);display:grid;place-items:center;min-height:40px}.image-shell.broken:after{content:"MAZKODI";font-size:9px;letter-spacing:.14em;color:var(--subtle)}.image-shell.broken img{display:none}.page-loader{min-height:58vh;display:grid;place-items:center}.spinner{width:38px;height:38px;border:3px solid rgba(255,255,255,.11);border-top-color:var(--accent);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.skeleton-hero{min-height:300px;border-radius:30px;background:linear-gradient(110deg,#0e1a2a,#19304a,#0e1a2a);background-size:200% 100%;animation:shimmer 1.15s linear infinite}.skeleton-rail{display:grid;grid-auto-flow:column;grid-auto-columns:152px;gap:12px;overflow:hidden}.skel-card .skel-p{aspect-ratio:2/3;border-radius:18px}.skel-line{height:10px;border-radius:7px;margin-top:8px}.short{width:58%}.skel{background:linear-gradient(90deg,#122238,#1c334c,#122238);background-size:200% 100%;animation:shimmer 1.15s linear infinite}@keyframes shimmer{to{background-position:-200% 0}}
.error-page{padding:72px 20px;text-align:center}.error-icon{font-size:39px}.error-page h2{margin:10px 0 6px}.error-page p{font-size:12px;color:var(--muted);line-height:1.55}.error-card{padding:14px;border-radius:16px;background:rgba(255,114,135,.07);border:1px solid rgba(255,114,135,.19);font-size:10px;color:#ffd9de}.empty{padding:40px 18px;text-align:center;color:var(--muted);font-size:11px}.info-strip{display:flex;gap:10px;align-items:center;padding:14px;border-radius:18px;background:linear-gradient(145deg,rgba(18,36,55,.92),rgba(9,20,33,.95));border:1px solid var(--border)}.info-strip>span{font-size:23px}.info-strip b{font-size:11px}.info-strip small{display:block;color:var(--muted);font-size:8px;line-height:1.45;margin-top:3px}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:5px 10px calc(5px + var(--safe-bottom));background:linear-gradient(180deg,transparent,rgba(4,10,17,.97) 29%);backdrop-filter:blur(17px)}.bottom-inner{width:min(1064px,calc(100% - 28px));margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:4px;background:rgba(10,23,36,.96);border:1px solid var(--border);border-radius:16px;box-shadow:0 -12px 38px rgba(0,0,0,.24)}.nav-item{padding:5px 3px;border-radius:13px;color:var(--muted);font-size:8px}.nav-item span{display:block;font-size:16px;margin-bottom:2px}.nav-item b{font-size:8px}.nav-item.active{color:var(--text);background:linear-gradient(135deg,rgba(29,212,255,.13),rgba(109,124,255,.12));box-shadow:inset 0 0 0 1px rgba(29,212,255,.13)}
.toast{position:fixed;left:50%;bottom:94px;transform:translate(-50%,18px);opacity:0;pointer-events:none;padding:10px 13px;border-radius:13px;background:rgba(5,13,22,.95);border:1px solid var(--border);box-shadow:var(--shadow-soft);font-size:10px;z-index:50;transition:opacity .18s,transform .18s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:650px){.screen{padding-left:20px;padding-right:20px}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.genre-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(4,1fr)}.collection-grid-pro{grid-template-columns:repeat(3,1fr)}.character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.episode-grid{grid-template-columns:repeat(8,1fr)}.hero{min-height:500px}.detail-cover{height:540px}.detail-head{grid-template-columns:165px 1fr}.detail-poster{width:165px;height:247px}.filter-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.screen{padding-left:28px;padding-right:28px}.grid{grid-template-columns:repeat(5,minmax(0,1fr))}.character-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.hero{min-height:560px}.detail-cover{height:570px}}

/* V31 smart catalog additions */
.ranking-list{display:grid;gap:8px}.ranking-row{display:grid;grid-template-columns:28px 46px 1fr auto;gap:10px;align-items:center;padding:9px 10px;border-radius:16px;background:linear-gradient(145deg,rgba(15,30,46,.96),rgba(8,17,28,.96));border:1px solid var(--border);text-align:left}.rank-no{font-size:15px;font-weight:950;color:#7bdfff;text-align:center}.rank-poster{width:46px;height:64px;border-radius:10px;overflow:hidden}.rank-poster img{width:100%;height:100%;object-fit:cover}.rank-copy{min-width:0}.rank-copy b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-copy small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.ranking-row>strong{font-size:8px;color:var(--muted);white-space:nowrap}.notify-toggle{width:100%;padding:12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--border);text-align:left;font-size:10px}.notify-toggle.on{background:rgba(29,212,255,.09);border-color:rgba(29,212,255,.25)}
@media(min-width:650px){.ranking-list{max-width:850px}.ranking-row{grid-template-columns:34px 58px 1fr auto}.rank-poster{width:58px;height:80px}}

.inline-code{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:6px;background:rgba(143,229,255,.10);border:1px solid rgba(143,229,255,.14);color:#8fe5ff;font-size:.72em;font-weight:900;vertical-align:1px}.card-code{display:none!important}

.title-code{display:inline-block;margin-left:7px;padding:4px 7px;border-radius:8px;background:rgba(143,229,255,.10);border:1px solid rgba(143,229,255,.15);color:#8fe5ff;font-size:.38em;font-weight:900;vertical-align:middle;letter-spacing:.03em}.inline-code{white-space:nowrap}


/* YummyAnime iframe player */
.player-modal{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.82);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;padding:16px}
.player-card{width:min(100%,960px);max-height:92vh;overflow:auto;background:#101116;border:1px solid rgba(255,255,255,.1);border-radius:22px;box-shadow:0 24px 90px rgba(0,0,0,.55)}
.player-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff}
.icon-close{border:0;background:rgba(255,255,255,.08);color:#fff;width:36px;height:36px;border-radius:12px;font-size:24px;cursor:pointer}
.player-tabs{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;border-bottom:1px solid rgba(255,255,255,.06)}
.player-tab{border:1px solid rgba(255,255,255,.1);background:#171923;color:#fff;padding:9px 12px;border-radius:12px;cursor:pointer;white-space:nowrap}
.player-tab.active{background:#fff;color:#111}
.player-frame{aspect-ratio:16/9;background:#000}
.player-frame iframe{width:100%;height:100%;border:0;display:block}
.player-loading{min-height:180px;display:grid;place-items:center}
.player-episode{opacity:.65}

/* MAZKODI PREMIUM PLAYER */
.player-modal{position:fixed;inset:0;z-index:100;background:rgba(2,7,13,.82);backdrop-filter:blur(18px);display:flex;align-items:flex-end;justify-content:center;padding:10px 10px calc(10px + var(--safe-bottom));animation:playerIn .22s ease-out}
.premium-player-card{width:min(760px,100%);max-height:calc(100dvh - 18px);overflow:auto;border-radius:28px;background:linear-gradient(155deg,#10243a 0%,#091522 58%,#060d15 100%);border:1px solid rgba(255,255,255,.1);box-shadow:0 25px 80px rgba(0,0,0,.58),0 0 0 1px rgba(29,212,255,.04);padding:14px}
.premium-player-top{padding:4px 2px 12px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between}.player-heading{display:flex;flex-direction:column;gap:2px}.player-heading b{font-size:20px;letter-spacing:-.02em}.player-kicker{font-size:8px;letter-spacing:.18em;color:#73ddff;font-weight:900}.icon-close{width:38px;height:38px;border-radius:13px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#dce9f4;font-size:23px;display:grid;place-items:center}
.player-source-head{display:flex;gap:11px;align-items:center;padding:15px 3px 10px}.player-source-head>span{width:38px;height:38px;border-radius:12px;background:rgba(29,212,255,.1);display:grid;place-items:center;font-size:18px}.player-source-head b{display:block;font-size:13px}.player-source-head small{display:block;color:#7f91a5;font-size:9px;margin-top:3px}
.player-source-list{display:grid;gap:7px}.player-source{width:100%;display:grid;grid-template-columns:40px 1fr 25px;gap:10px;align-items:center;text-align:left;padding:10px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);transition:.16s}.player-source:active{transform:scale(.985)}.player-source.active{background:linear-gradient(90deg,rgba(29,212,255,.13),rgba(109,124,255,.09));border-color:rgba(29,212,255,.35);box-shadow:inset 3px 0 0 #1dd4ff}.source-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.055);font-size:18px}.source-copy{min-width:0}.source-copy b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-copy small{display:block;color:#8091a5;font-size:8px;margin-top:4px}.source-check{text-align:center;font-size:17px;color:#63758a}.player-source.active .source-check{color:#68ddff}
.player-selected{display:flex;align-items:center;gap:7px;margin:10px 0;padding:9px 11px;border-radius:13px;background:rgba(29,212,255,.055);border:1px solid rgba(29,212,255,.13);font-size:9px}.player-selected span{color:#77899c}.player-selected b{font-size:9px;color:#dce8f2}.player-selected em{font-style:normal;color:#69dcff;margin-left:auto}
.player-frame-wrap{border-radius:19px;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.08);box-shadow:0 15px 45px rgba(0,0,0,.28)}.player-frame-title{height:35px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;background:#0b1724;color:#a9bacb;font-size:8px}.player-frame-title span:first-child{color:#dce8f2;font-weight:800}.player-frame{aspect-ratio:16/9;background:#000}.player-frame iframe{display:block;width:100%;height:100%;border:0}.player-no-video{height:100%;display:grid;place-items:center;color:#77899b;font-size:11px;text-align:center;padding:30px}.player-controls{display:flex;align-items:center;justify-content:space-between;padding:11px 2px 1px;color:#63768a;font-size:8px}.player-control{padding:8px 11px;border-radius:11px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);color:#cdd9e5;font-size:9px}
@keyframes playerIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px){.player-modal{align-items:center}.premium-player-card{max-height:92dvh}.player-source-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact voice/player selector */
.compact-player-card{padding:12px;max-width:700px}
.compact-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 9px}
.compact-choice{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 9px;border-radius:11px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.choice-label{font-size:9px;color:#9fb0c1;white-space:nowrap}
.compact-choice select{min-width:0;flex:1;background:#0b1724;color:#e7f1fa;border:0;outline:0;font-size:10px;font-weight:700;padding:3px 2px;border-radius:7px}
.compact-static{min-width:0;flex:1;color:#e7f1fa;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.compact-source-list{display:grid;gap:4px;max-height:150px;overflow:auto;margin-bottom:9px}
.compact-source-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055);color:#dce8f2;text-align:left}
.compact-source-row.active{background:rgba(29,212,255,.09);border-color:rgba(29,212,255,.28);box-shadow:inset 2px 0 #1dd4ff}
.compact-source-name{font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-source-player{font-size:8px;color:#72859a;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}
.compact-source-check{text-align:center;font-size:13px;color:#60758a}
.compact-source-row.active .compact-source-check{color:#67ddff}
.compact-frame-wrap{border-radius:14px}
@media(max-width:520px){.compact-choice-grid{grid-template-columns:1fr}.compact-choice{padding:6px 8px}.compact-source-list{max-height:120px}}

/* MAZKODI compact mobile start/navigation */
@media(max-width:520px){.bottom-nav{padding-left:7px;padding-right:7px}.bottom-inner{width:calc(100% - 14px);border-radius:15px}.nav-item b{font-size:7px}}

/* MAZKODI PREMIUM UI 10X */
.screen{width:min(1040px,100%);padding:18px 18px calc(92px + var(--safe-bottom));}
.bottom-nav{position:fixed;z-index:80;left:50%;bottom:10px;transform:translateX(-50%);width:min(680px,calc(100% - 28px));padding:5px;border:1px solid rgba(143,220,255,.12);border-radius:20px;background:rgba(7,17,29,.88);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 18px 50px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05);}
.bottom-inner{height:58px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;}
.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:15px;color:#7f93aa;transition:.22s ease;}
.nav-item span{font-size:17px;line-height:1}.nav-item b{font-size:8px;font-weight:850}.nav-item.active{color:#eafaff;background:linear-gradient(145deg,rgba(29,212,255,.15),rgba(109,124,255,.10));box-shadow:inset 0 0 0 1px rgba(70,216,255,.16)}
.nav-item.active:after{content:"";position:absolute;bottom:4px;width:22px;height:2px;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--accent2));}
.premium-home{padding-top:2px}.home-brandbar{display:flex;align-items:center;justify-content:space-between;margin:3px 2px 17px}.brand-lockup{display:flex;align-items:center;gap:10px}.brand-orb{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:18px;font-weight:1000;background:linear-gradient(145deg,#1bd7ff,#596cff);box-shadow:0 10px 30px rgba(29,212,255,.18);color:#fff}.premium-profile{width:42px;height:42px;border-radius:14px}.welcome-panel{position:relative;overflow:hidden;min-height:190px;margin-bottom:14px;padding:25px;border-radius:27px;border:1px solid rgba(119,211,255,.14);background:radial-gradient(circle at 82% 18%,rgba(79,115,255,.26),transparent 32%),radial-gradient(circle at 15% 100%,rgba(20,213,255,.13),transparent 38%),linear-gradient(145deg,rgba(17,37,57,.98),rgba(7,17,29,.99));box-shadow:0 22px 55px rgba(0,0,0,.28);}
.welcome-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.035) 50%,transparent 70%);transform:translateX(-100%);animation:shine 7s ease-in-out infinite}.welcome-copy{position:relative;z-index:2;max-width:560px}.welcome-copy h1{font-size:30px;line-height:1.03;letter-spacing:-.04em;margin:8px 0 9px}.welcome-copy p{font-size:11px;line-height:1.55;color:#a8b8c9;max-width:420px;margin:0}.welcome-glow{position:absolute;width:190px;height:190px;right:-35px;top:-45px;border-radius:50%;background:radial-gradient(circle,rgba(29,212,255,.25),transparent 68%);filter:blur(5px)}
@keyframes shine{0%,55%{transform:translateX(-120%)}80%,100%{transform:translateX(120%)}}
.premium-search{height:60px;border-radius:19px;margin-bottom:15px;border-color:rgba(115,210,255,.15);background:rgba(10,23,38,.92);box-shadow:0 14px 38px rgba(0,0,0,.23)}.premium-search:focus-within{border-color:rgba(29,212,255,.4);box-shadow:0 0 0 4px rgba(29,212,255,.05),0 14px 38px rgba(0,0,0,.25)}
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:22px}.action-card{min-height:102px;padding:13px;border-radius:19px;text-align:left;display:grid;grid-template-columns:38px 1fr 12px;align-items:center;gap:9px;border:1px solid var(--border);background:linear-gradient(145deg,rgba(18,38,58,.98),rgba(8,18,30,.98));box-shadow:0 13px 30px rgba(0,0,0,.2);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.action-card:active{transform:scale(.985)}.action-card:hover{transform:translateY(-2px);border-color:rgba(130,220,255,.25);box-shadow:0 18px 38px rgba(0,0,0,.28)}.action-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;font-size:19px;background:rgba(255,255,255,.055)}.action-card span:nth-child(2){display:flex;flex-direction:column;min-width:0}.action-card b{font-size:11px}.action-card small{font-size:8px;color:#7f95ad;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action-card i{font-style:normal;color:#7edfff;font-size:15px}.action-cyan .action-icon{background:rgba(29,212,255,.1)}.action-blue .action-icon{background:rgba(74,125,255,.12)}.action-violet .action-icon{background:rgba(145,102,255,.12)}.action-gold .action-icon{background:rgba(255,193,74,.1)}
.section{margin:26px 0}.section-head h2{font-size:17px}.section-head small{font-size:9px}.rail{grid-auto-columns:158px;gap:13px}.poster-wrap{border-radius:17px;box-shadow:0 15px 32px rgba(0,0,0,.28)}.anime-card:hover .poster-wrap{border-color:rgba(29,212,255,.22);transform:translateY(-2px)}.anime-card{transition:transform .18s ease}.anime-card:hover{transform:translateY(-2px)}
.grid{gap:15px}.genre-grid{gap:12px}.genre-tile{min-height:72px;border-radius:18px;background:linear-gradient(145deg,rgba(16,34,53,.98),rgba(7,17,29,.98));transition:.18s ease}.genre-tile:hover{transform:translateY(-2px);border-color:rgba(29,212,255,.22)}
@media(max-width:760px){.screen{padding-left:13px;padding-right:13px}.quick-actions{grid-template-columns:1fr 1fr}.action-card{min-height:84px}.welcome-panel{min-height:175px;padding:21px}.welcome-copy h1{font-size:27px}.bottom-nav{width:calc(100% - 20px);bottom:7px}.bottom-inner{height:55px}.nav-item span{font-size:16px}}
@media(min-width:900px){.welcome-panel{min-height:205px}.quick-actions{gap:11px}.action-card{min-height:112px}.rail{grid-auto-columns:170px}}

@media(min-width:650px){.character-hero-art{inset:20px 18% 92px}.character-hero-art .image-shell{width:min(100%,520px)}}

.genre-grid-main{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px;margin:0 auto}.genre-note{text-align:center;color:var(--muted,#8fa2b7);font-size:12px;margin:12px 0 30px}@media(min-width:650px){.genre-grid-main{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* MAZKODI profile + watched history — additive patch */
.profile-hero-art{position:relative;overflow:hidden;min-height:180px;padding:24px 20px;border-radius:26px;border:1px solid rgba(128,210,255,.18);background:linear-gradient(120deg,rgba(5,12,24,.96),rgba(7,16,30,.78)),var(--profile-bg) center/cover;box-shadow:0 24px 65px rgba(0,0,0,.35);display:flex;align-items:flex-end;gap:16px}.profile-hero-art:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,8,17,.05) 0%,rgba(3,8,17,.18) 38%,rgba(3,8,17,.94) 100%);pointer-events:none}.profile-art-glow{position:absolute;width:210px;height:210px;right:-60px;top:-70px;border-radius:50%;background:radial-gradient(circle,rgba(63,211,255,.28),transparent 68%);filter:blur(4px)}.profile-avatar-img,.profile-avatar-fallback{position:relative;z-index:2;width:86px;height:86px;min-width:86px;border-radius:24px;object-fit:cover;border:2px solid rgba(255,255,255,.22);box-shadow:0 14px 35px rgba(0,0,0,.38)}.profile-avatar-fallback{display:none;place-items:center;background:linear-gradient(145deg,#1bd7ff,#596cff);font-size:32px;font-weight:1000}.profile-identity{position:relative;z-index:2;min-width:0;padding-bottom:3px}.profile-hero-art .profile-name{font-size:22px;font-weight:950;letter-spacing:-.03em}.profile-hero-art .profile-user{margin-top:5px;color:#a8bfd4;font-size:11px}.profile-stats{position:relative;z-index:3;margin-top:12px}.profile-stats>div{background:rgba(10,20,34,.72);backdrop-filter:blur(10px)}

.episode.watched{border-color:rgba(70,220,150,.55)!important;background:linear-gradient(180deg,rgba(50,190,125,.16),rgba(50,190,125,.06))!important;box-shadow:inset 0 0 0 1px rgba(70,220,150,.08)}
.episode.watched b{color:#63e6a2}.episode.watched small{color:#63e6a2}
.profile-menu{padding:0;overflow:hidden}.profile-action{width:100%;display:grid;grid-template-columns:44px 1fr 24px;align-items:center;gap:12px;padding:16px 18px;background:none;border:0;color:inherit;text-align:left}.profile-action>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(80,120,255,.12);font-size:20px}.profile-action b,.profile-action small{display:block}.profile-action small{margin-top:3px;opacity:.58}.profile-action strong{font-size:24px;opacity:.5}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(255,255,255,.07)}.setting-row:first-of-type{border-top:0}.setting-row b,.setting-row small{display:block}.setting-row small{margin-top:3px;opacity:.55}.setting-select{min-width:94px;padding:9px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:inherit}.history-badge{position:absolute;left:8px;bottom:8px;padding:5px 8px;border-radius:8px;background:rgba(20,24,30,.88);color:#65e7a4;font-size:11px;font-weight:700;backdrop-filter:blur(8px)}.watched-history-card .poster-wrap{position:relative}


/* MAZKODI progress / continue */
.continue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.continue-card{display:flex;gap:11px;min-width:0;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.035)}
.continue-poster{position:relative;width:72px;min-width:72px;height:104px;padding:0;border:0;border-radius:11px;overflow:hidden;background:#111;cursor:pointer}
.continue-poster img{width:100%;height:100%;object-fit:cover;display:block}
.continue-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.continue-info>b{font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.continue-info small{opacity:.62;font-size:11px;line-height:1.3}
.continue-btn{margin-top:auto!important;padding:8px 10px!important;font-size:11px!important;border-radius:10px!important}
.continue-panel .panel-title-row{margin-bottom:10px}
@media(max-width:640px){.continue-list{grid-template-columns:1fr}.continue-card{padding:9px}.continue-poster{width:64px;min-width:64px;height:92px}}

/* MAZKODI settings page */
.settings-panel{margin-top:14px}
.settings-danger{margin-top:14px;border-color:rgba(255,82,82,.28);background:linear-gradient(180deg,rgba(35,16,22,.92),rgba(16,10,16,.92))}
.danger-copy{margin:0 0 14px;color:var(--muted,#94a3b8);line-height:1.5;font-size:13px}
.danger-btn{width:100%;border:1px solid rgba(255,82,82,.42);background:rgba(180,35,50,.14);color:#ff8b96;border-radius:14px;padding:13px 16px;font-weight:800;cursor:pointer;transition:.18s ease}
.danger-btn:hover{background:rgba(180,35,50,.24);border-color:rgba(255,82,82,.6);transform:translateY(-1px)}

/* MAZKODI achievements */
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px 0 30px}
.achievement-card{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:linear-gradient(180deg,rgba(17,29,45,.96),rgba(7,13,22,.98));color:inherit;text-align:left;padding:0;cursor:pointer;box-shadow:0 16px 45px rgba(0,0,0,.22);transition:.2s ease}
.achievement-card:hover{transform:translateY(-3px);border-color:rgba(70,190,255,.35)}
.achievement-poster{position:relative;aspect-ratio:3/4;overflow:hidden;background:#0b1220}
.achievement-poster .image-shell,.achievement-poster img{width:100%;height:100%;display:block}
.achievement-poster img{object-fit:cover}
.achievement-poster>span{position:absolute;right:9px;top:9px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(5,10,18,.82);border:1px solid rgba(255,210,70,.42);box-shadow:0 6px 20px rgba(0,0,0,.35)}
.achievement-copy{padding:11px 12px 13px}.achievement-copy b,.achievement-copy small{display:block}.achievement-copy b{font-size:13px;line-height:1.25}.achievement-copy small{margin-top:5px;color:var(--muted,#94a3b8);font-size:10px}
.achievement-modal{position:fixed;inset:0;z-index:10020;background:rgba(1,5,12,.86);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:center;padding:18px}
.achievement-modal-card{position:relative;width:min(92vw,390px);padding:22px 20px 20px;text-align:center;border:1px solid rgba(93,198,255,.35);border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(50,150,255,.20),transparent 44%),linear-gradient(180deg,#111f32,#070d17);box-shadow:0 30px 100px rgba(0,0,0,.65);animation:achievementPop .28s ease-out}
.achievement-close{position:absolute;right:12px;top:12px}.achievement-crown{font-size:34px;margin:2px 0 3px}.achievement-label{font-size:10px;font-weight:900;letter-spacing:.18em;color:#68d6ff;margin-bottom:13px}.achievement-modal-poster{width:150px;aspect-ratio:3/4;margin:0 auto 15px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 45px rgba(0,0,0,.45)}.achievement-modal-poster .image-shell,.achievement-modal-poster img{width:100%;height:100%;display:block}.achievement-modal-poster img{object-fit:cover}.achievement-modal-card h2{margin:4px 0 6px;font-size:20px}.achievement-modal-card p{margin:0 0 16px;color:var(--muted,#94a3b8);font-size:12px}.achievement-modal-card .primary-btn{width:100%}@keyframes achievementPop{from{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(min-width:650px){.achievement-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* MAZKODI achievement celebration + full reset */
.achievement-modal{opacity:0;transition:opacity .22s ease}
.achievement-modal.show{opacity:1}
.achievement-modal-card{overflow:hidden;transform:translateY(14px) scale(.94);transition:transform .34s cubic-bezier(.2,.9,.2,1),box-shadow .34s ease}
.achievement-modal.show .achievement-modal-card{transform:translateY(0) scale(1);box-shadow:0 35px 120px rgba(0,0,0,.72),0 0 70px rgba(29,212,255,.13)}
.achievement-shine{position:absolute;left:-35%;top:0;width:170%;height:180px;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.12) 48%,transparent 58%);transform:translateX(-70%) rotate(8deg);animation:achievementShine 1.6s .35s ease-out forwards;pointer-events:none}
.achievement-earned{display:inline-block;margin:0 auto 7px;padding:6px 10px;border-radius:999px;background:rgba(104,221,255,.10);border:1px solid rgba(104,221,255,.20);color:#83e4ff;font-size:9px;font-weight:900;letter-spacing:.04em}
.achievement-burst{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:10021}
.achievement-confetti{position:absolute;left:50%;top:48%;width:7px;height:14px;border-radius:2px;background:#ffd45e;opacity:0;animation:confettiFly 1.15s cubic-bezier(.1,.8,.25,1) forwards}
.achievement-confetti:nth-child(3n){background:#55d8ff}.achievement-confetti:nth-child(4n){background:#a78bfa}.achievement-confetti:nth-child(5n){background:#65e6a2}
.c0{--x:-210px;--r:-45deg}.c1{--x:170px;--r:65deg}.c2{--x:-145px;--r:90deg}.c3{--x:125px;--r:-30deg}.c4{--x:-95px;--r:40deg}.c5{--x:90px;--r:-70deg}.c6{--x:-55px;--r:120deg}.c7{--x:55px;--r:-120deg}
.achievement-confetti:nth-child(n+9){animation-delay:.05s}.achievement-confetti:nth-child(n+17){animation-delay:.11s}
@keyframes confettiFly{0%{opacity:0;transform:translate(-50%,-50%) scale(.5) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + 300px)) rotate(var(--r))}}
@keyframes achievementShine{to{transform:translateX(70%) rotate(8deg)}}
.danger-btn-full{margin-top:9px;background:linear-gradient(90deg,rgba(255,74,95,.17),rgba(150,52,255,.12));border-color:rgba(255,105,120,.46)}
@media(prefers-reduced-motion:reduce){.achievement-modal,.achievement-modal-card,.achievement-shine,.achievement-confetti{animation:none!important;transition:none!important}}

/* MAZKODI profile levels */
.level-card{display:grid;grid-template-columns:116px 1fr;gap:13px;margin:12px 0;padding:10px;border:1px solid rgba(128,210,255,.16);border-radius:22px;background:rgba(10,20,34,.82);box-shadow:0 18px 45px rgba(0,0,0,.24);overflow:hidden}
.level-art{height:116px;border-radius:16px;overflow:hidden;background:#08111f}.level-art img{width:100%;height:100%;display:block;object-fit:cover}.level-info{padding:7px 6px 5px 0;min-width:0}.level-top{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#b8c8d8}.level-top b{color:#fff}.level-info h3{margin:8px 0 10px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level-progress{height:7px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}.level-progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#22d3ee,#7c3aed,#f472b6);box-shadow:0 0 14px rgba(70,190,255,.28)}.level-info small{display:block;margin-top:8px;color:#8294a8;font-size:9px}.profile-level-mini{margin-top:7px;display:inline-block;padding:5px 8px;border-radius:9px;background:rgba(40,180,255,.12);border:1px solid rgba(100,210,255,.16);color:#8be9ff;font-size:9px;font-weight:800}

/* MAZKODI anime level system */
.level-source{margin-top:7px;color:#70869b;font-size:9px}.level-roadmap{margin:12px 0}.level-roadmap-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.level-tile{position:relative;min-width:0;aspect-ratio:0.72;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:13px;overflow:hidden;background:#09111e;color:#fff;text-align:left}.level-tile img{width:100%;height:100%;object-fit:cover;display:block}.level-tile-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.2) 45%,rgba(0,0,0,.92) 100%)}.level-tile b,.level-tile small,.level-tile i{position:absolute;left:7px;z-index:2}.level-tile b{bottom:22px;font-size:9px}.level-tile small{bottom:7px;font-size:8px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;right:5px}.level-tile i{top:6px;left:6px;padding:3px 5px;border-radius:6px;background:rgba(30,210,170,.88);font-size:6px;font-style:normal;font-weight:900}.level-tile.locked img{filter:grayscale(1) brightness(.3);transform:scale(1.02)}.level-tile.active{border-color:rgba(80,220,255,.9);box-shadow:0 0 0 1px rgba(80,220,255,.2),0 8px 25px rgba(20,190,255,.15)}.level-tile.unlocked{cursor:pointer}@media(max-width:420px){.level-roadmap-grid{gap:6px}.level-tile b{font-size:8px}.level-tile small{font-size:7px}}

/* Genre sorting */
.genre-sort{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;scrollbar-width:none}
.genre-sort::-webkit-scrollbar{display:none}
.sort-chip{border:1px solid var(--border,#2b2f3a);background:var(--card,#151820);color:var(--muted,#a8adbb);border-radius:999px;padding:9px 12px;white-space:nowrap;font-size:12px;font-weight:700;cursor:pointer}
.sort-chip.active{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.10)}

/* MAZKODI Top 100/250/500 rank labels */
.top-rank-number{position:absolute;z-index:3;right:8px;left:auto;top:8px;min-width:30px;height:34px;padding:0 7px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:linear-gradient(145deg,#ffd76a,#f59e0b);color:#241707;font-size:16px;font-weight:1000;line-height:1;box-shadow:0 5px 16px rgba(0,0,0,.38);border:1px solid rgba(255,255,255,.65);}

/* MAZKODI: actual poster image wrapper fix */
.poster-wrap > .image-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: inherit;
}
.poster-wrap > .image-shell > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

/* MAZ PLAYER direct-stream mode */
.maz-player-status{padding:7px 10px;color:var(--muted);font-size:10px;line-height:1.45;background:#050a10}.maz-player-loading{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:12px}.player-frame video{display:block;width:100%;height:100%;min-height:180px;max-height:65vh;background:#000;object-fit:contain}

/* MAZ Player source selection: keep native playback inside the existing MAZKODI modal */
.maz-player-status{padding:7px 10px;color:var(--muted);font-size:10px;line-height:1.45;background:#050a10}.maz-player-loading{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:12px}.player-frame video{display:block;width:100%;height:100%;min-height:180px;max-height:65vh;background:#000;object-fit:contain}.player-no-video{min-height:180px;display:grid;place-items:center;padding:24px;text-align:center;color:var(--muted);font-size:13px}

/* MAZ PLAYER — polished theater interface */
.player-modal{align-items:center!important;padding:18px!important;background:rgba(1,6,12,.91)!important;backdrop-filter:blur(20px) saturate(130%)!important}
.compact-player-card{width:min(1120px,100%)!important;max-width:1120px!important;max-height:96dvh!important;overflow:auto!important;padding:clamp(12px,2vw,22px)!important;border-radius:24px!important;background:linear-gradient(155deg,#0e2032 0%,#081522 54%,#050b12 100%)!important;border:1px solid rgba(135,210,255,.18)!important;box-shadow:0 28px 100px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.035)!important}
.premium-player-top{padding:2px 2px 15px!important;margin-bottom:14px!important}
.player-kicker{font-size:10px!important;letter-spacing:.2em!important;color:#66dcff!important}
.player-heading b{font-size:clamp(19px,2vw,25px)!important;color:#f0f7ff!important}
.icon-close{width:42px!important;height:42px!important;font-size:25px!important;transition:background .15s,transform .15s}
.icon-close:hover{background:rgba(255,255,255,.14)!important;transform:rotate(90deg)}
.compact-choice-grid{gap:10px!important;margin:0 0 12px!important}
.compact-choice{padding:11px 13px!important;border-radius:14px!important;background:rgba(255,255,255,.035)!important;border-color:rgba(143,210,255,.12)!important}
.choice-label{font-size:12px!important;color:#9db5ca!important}
.compact-choice select{font-size:13px!important;padding:6px 7px!important;cursor:pointer!important}
.compact-source-list{display:flex!important;flex-wrap:wrap!important;gap:7px!important;max-height:100px!important;overflow-y:auto!important;margin:0 0 14px!important;padding:1px 1px 5px!important}
.compact-source-row{width:auto!important;max-width:100%!important;display:flex!important;align-items:center!important;gap:9px!important;padding:9px 12px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;border-color:rgba(143,210,255,.11)!important;cursor:pointer!important;transition:background .15s,border-color .15s!important}
.compact-source-row:hover{background:rgba(29,212,255,.08)!important;border-color:rgba(29,212,255,.24)!important}
.compact-source-row.active{background:linear-gradient(100deg,rgba(29,212,255,.14),rgba(109,124,255,.09))!important;border-color:rgba(29,212,255,.42)!important;box-shadow:inset 3px 0 #1dd4ff!important}
.compact-source-name{font-size:12px!important;max-width:260px!important}
.compact-source-player{font-size:10px!important;max-width:180px!important}
.compact-source-check{font-size:15px!important}
.compact-frame-wrap{border-radius:18px!important;border-color:rgba(135,210,255,.17)!important;box-shadow:0 18px 55px rgba(0,0,0,.38)!important}
.player-frame-title{height:auto!important;min-height:43px!important;padding:8px 13px!important;gap:10px!important;background:linear-gradient(90deg,#0c1b2a,#0a1521)!important;font-size:12px!important}
.player-frame-title span:first-child{display:flex;align-items:center;gap:8px!important;font-size:12px!important}
.player-live-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#4ee2a0;box-shadow:0 0 12px rgba(78,226,160,.65)}
.player-frame-meta{display:flex;align-items:center;gap:12px;color:#91a8bd}
.player-fullscreen-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:9px;border:1px solid rgba(143,210,255,.15);background:rgba(255,255,255,.045);color:#dceaf6;font-size:12px;cursor:pointer}
.player-fullscreen-btn:hover{background:rgba(29,212,255,.13);border-color:rgba(29,212,255,.35)}
.player-fullscreen-btn b{font-size:10px;font-weight:650}
.player-frame{aspect-ratio:16/9!important;max-height:calc(100dvh - 270px)!important;min-height:240px!important;background:#000!important}
.player-frame video{width:100%!important;height:100%!important;min-height:240px!important;max-height:calc(100dvh - 270px)!important;object-fit:contain!important;background:#000!important}
.compact-frame-wrap:fullscreen{width:100vw;height:100vh;border:0;border-radius:0!important;background:#000;display:flex;flex-direction:column}
.compact-frame-wrap:fullscreen .player-frame{flex:1;max-height:none!important;min-height:0!important;aspect-ratio:auto!important}
.compact-frame-wrap:fullscreen .player-frame video{max-height:none!important;min-height:0!important;height:100%!important}
.compact-frame-wrap:fullscreen .player-frame-title{flex-shrink:0}
.maz-player-status{font-size:11px!important;padding:9px 13px!important;background:#07101a!important;color:#8fa8bd!important;border-top:1px solid rgba(143,210,255,.08)!important}
.player-controls{padding:13px 2px 1px!important;font-size:11px!important;color:#7f96aa!important}
.player-control{font-size:12px!important;padding:10px 14px!important;border-radius:12px!important;cursor:pointer!important}
.player-control:hover{background:rgba(255,255,255,.09)!important}
@media(max-width:700px){
 .player-modal{padding:6px!important;align-items:flex-end!important}
 .compact-player-card{max-height:calc(100dvh - 8px)!important;border-radius:20px 20px 12px 12px!important;padding:10px!important}
 .premium-player-top{margin-bottom:10px!important;padding-bottom:10px!important}
 .player-heading b{font-size:18px!important}
 .compact-choice-grid{grid-template-columns:1fr!important;gap:7px!important}
 .compact-choice{padding:8px 10px!important}
 .compact-source-list{max-height:76px!important;margin-bottom:9px!important}
 .compact-source-row{padding:7px 9px!important}
 .compact-source-name{font-size:11px!important;max-width:180px!important}
 .player-frame-title{min-height:37px!important;padding:7px 9px!important;font-size:10px!important}
 .player-frame-title span:first-child{font-size:10px!important}
 .player-frame-meta{gap:6px!important;font-size:9px!important}
 .player-fullscreen-btn{padding:5px 7px!important;font-size:11px!important}
 .player-fullscreen-btn b{display:none}
 .player-frame{min-height:190px!important;max-height:calc(100dvh - 310px)!important}
 .player-frame video{min-height:190px!important;max-height:calc(100dvh - 310px)!important}
 .player-controls{padding-top:9px!important}
}

/* MAZ PLAYER V13 — cinematic custom controls */
.player-modal{background:radial-gradient(ellipse at 50% 0%,rgba(25,87,125,.25),transparent 52%),rgba(2,5,11,.94)!important}
.compact-player-card{width:min(1180px,100%)!important;padding:clamp(14px,2.2vw,26px)!important;border-radius:28px!important;background:linear-gradient(145deg,#101d2d 0%,#091321 50%,#060b13 100%)!important;border:1px solid rgba(120,190,255,.2)!important;box-shadow:0 32px 110px rgba(0,0,0,.78),0 0 70px rgba(35,158,222,.07)!important}
.premium-player-top{margin-bottom:18px!important;padding-bottom:16px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
.player-kicker{display:inline-flex!important;align-items:center;gap:7px!important;font-size:10px!important;letter-spacing:.22em!important;color:#70e2ff!important}
.player-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:#55e7b0;box-shadow:0 0 12px #55e7b0}
.player-heading b{font-size:clamp(21px,2.5vw,30px)!important;font-weight:750!important;letter-spacing:-.04em!important}
.compact-choice-grid{gap:12px!important;margin-bottom:14px!important}
.compact-choice{display:flex!important;align-items:center!important;gap:12px!important;padding:12px 15px!important;border-radius:16px!important;background:linear-gradient(120deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;border:1px solid rgba(145,193,230,.13)!important}
.choice-label{white-space:nowrap!important;font-size:12px!important;font-weight:700!important;color:#a8bfd4!important}
.compact-choice select{min-width:0!important;flex:1!important;background:#101f30!important;color:#f3f8ff!important;border:1px solid rgba(130,185,225,.16)!important;border-radius:10px!important;padding:8px 10px!important;outline:none!important}
.compact-source-list{max-height:96px!important;gap:8px!important;margin-bottom:16px!important}
.compact-source-row{padding:10px 14px!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(145,193,230,.12)!important}
.compact-source-row.active{background:linear-gradient(110deg,rgba(35,190,235,.17),rgba(100,109,255,.12))!important;border-color:rgba(77,213,255,.5)!important;box-shadow:inset 0 0 0 1px rgba(77,213,255,.07),0 4px 18px rgba(0,0,0,.16)!important}
.compact-frame-wrap{border-radius:20px!important;overflow:hidden!important;border:1px solid rgba(145,205,245,.19)!important;box-shadow:0 20px 60px rgba(0,0,0,.45)!important}
.player-frame-title{min-height:44px!important;padding:10px 15px!important;background:#0a1421!important;font-size:11px!important}
.player-frame{position:relative!important;isolation:isolate!important;overflow:hidden!important;aspect-ratio:16/9!important;min-height:220px!important;max-height:calc(100dvh - 300px)!important;background:#000!important}
.player-frame video{display:block!important;width:100%!important;height:100%!important;min-height:220px!important;max-height:calc(100dvh - 300px)!important;object-fit:contain!important;background:#000!important;cursor:pointer!important}
.maz-controls{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:1;transition:opacity .2s ease;background:linear-gradient(180deg,rgba(0,0,0,.15),transparent 24%,transparent 55%,rgba(0,0,0,.72))}
.maz-controls-gradient{position:absolute;left:0;right:0;bottom:0;padding:42px 20px 16px;pointer-events:auto}
.maz-center-play{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(10,20,33,.66);backdrop-filter:blur(12px);color:#fff;font-size:25px;padding-left:5px;box-shadow:0 8px 35px rgba(0,0,0,.4);cursor:pointer;transition:transform .2s,background .2s}
.maz-center-play:hover{transform:translate(-50%,-50%) scale(1.08);background:rgba(27,171,218,.78)}.maz-center-play.is-hidden{opacity:0;pointer-events:none}
.maz-progress-row{display:flex;align-items:center;gap:11px;color:#e5edf5;font-size:11px;font-variant-numeric:tabular-nums;margin-bottom:9px}
.maz-seek,.maz-volume{appearance:none;-webkit-appearance:none;outline:none;cursor:pointer;background:rgba(255,255,255,.3);height:4px;border-radius:20px;min-width:0}
.maz-seek{flex:1}.maz-seek::-webkit-slider-thumb,.maz-volume::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(80,211,255,.25)}
.maz-seek::-moz-range-thumb,.maz-volume::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:#fff}
.maz-control-row{display:flex;align-items:center;gap:12px;color:#fff}.maz-ui-button{width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#fff;font-size:20px;display:grid;place-items:center;cursor:pointer;transition:background .15s}.maz-ui-button:hover{background:rgba(255,255,255,.16)}
.maz-quality-pill{font-size:10px;font-weight:750;letter-spacing:.04em;padding:5px 8px;border-radius:7px;background:rgba(255,255,255,.12);color:#eaf8ff}.maz-controls-spacer{flex:1}.maz-volume-icon{font-size:15px}.maz-volume{width:78px;height:3px}
.player-frame:fullscreen .maz-controls-gradient{padding:50px 34px 25px}.player-frame:fullscreen video{max-height:none!important;min-height:0!important;height:100%!important}.compact-frame-wrap:fullscreen .player-frame{max-height:none!important;min-height:0!important;aspect-ratio:auto!important}.compact-frame-wrap:fullscreen .player-frame video{max-height:none!important;min-height:0!important;height:100%!important}
.player-controls{padding:16px 2px 0!important;color:#7f98ae!important}.player-control{border-radius:12px!important;padding:10px 15px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(145,193,230,.13)!important}.player-control:hover{background:rgba(50,193,239,.12)!important;border-color:rgba(50,193,239,.28)!important}
@media(hover:hover){.player-frame:hover .maz-controls{opacity:1}.player-frame:not(:hover) .maz-controls{opacity:0}.player-frame:not(:hover) .maz-center-play:not(.is-hidden){opacity:1}}
@media(max-width:700px){.compact-player-card{padding:10px!important;border-radius:19px!important}.premium-player-top{margin-bottom:11px!important;padding-bottom:11px!important}.compact-choice{gap:8px!important;padding:9px!important}.compact-source-list{max-height:78px!important;margin-bottom:10px!important}.player-frame{min-height:190px!important;max-height:calc(100dvh - 310px)!important}.player-frame video{min-height:190px!important;max-height:calc(100dvh - 310px)!important}.maz-controls-gradient{padding:30px 10px 9px}.maz-control-row{gap:5px}.maz-ui-button{width:30px;height:30px}.maz-volume{width:48px}.maz-center-play{width:52px;height:52px;font-size:21px}.maz-progress-row{gap:7px;font-size:10px;margin-bottom:5px}}

/* MAZ PLAYER V15 — true video-stage fullscreen (no modal margins or controls outside the viewport) */
.player-frame:fullscreen,
.player-frame:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483647 !important;
}
.player-frame:fullscreen video,
.player-frame:-webkit-full-screen video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: #000 !important;
}
.player-frame:fullscreen .maz-controls,
.player-frame:-webkit-full-screen .maz-controls {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.player-frame:fullscreen .maz-controls-gradient,
.player-frame:-webkit-full-screen .maz-controls-gradient {
  padding: 56px 38px 28px !important;
}
@media (max-width: 700px) {
  .player-frame:fullscreen .maz-controls-gradient,
  .player-frame:-webkit-full-screen .maz-controls-gradient {
    padding: 36px 14px 14px !important;
  }
}

/* MAZ PLAYER V16 — desktop shortcuts, speed and quality controls */
.maz-quality-pill,.maz-speed-button{appearance:none;border:1px solid rgba(126,211,255,.22);cursor:pointer;font:inherit;font-size:11px;font-weight:800;letter-spacing:.02em;padding:7px 9px;border-radius:9px;background:rgba(10,25,40,.82);color:#eaf8ff;white-space:nowrap;transition:background .15s,border-color .15s}
.maz-quality-pill:hover,.maz-speed-button:hover{background:rgba(26,148,190,.36);border-color:rgba(126,211,255,.55)}
.maz-speed-button{min-width:43px;color:#aeeaff}
.maz-controls button{pointer-events:auto}
@media(max-width:700px){.maz-quality-pill,.maz-speed-button{font-size:10px;padding:6px 7px}.maz-control-row{gap:5px!important}}

/* MAZ PLAYER V17 — functional quality menu and idle pointer */
.maz-quality-menu{position:absolute;right:62px;bottom:45px;z-index:30;display:flex;flex-direction:column;gap:3px;min-width:142px;max-height:240px;overflow:auto;padding:7px;border:1px solid rgba(135,210,255,.24);border-radius:12px;background:rgba(5,13,24,.96);box-shadow:0 12px 34px rgba(0,0,0,.5);backdrop-filter:blur(14px);pointer-events:auto}
.maz-quality-menu[hidden]{display:none!important}
.maz-quality-option{width:100%;padding:8px 10px;border-radius:7px;text-align:left;color:#dceaf6;font-size:12px;font-weight:700;cursor:pointer}
.maz-quality-option:hover,.maz-quality-option.active{background:rgba(35,180,220,.22);color:#9be9ff}
.player-frame.maz-ui-idle,.player-frame.maz-ui-idle video{cursor:none!important}
.player-frame.maz-ui-idle .maz-controls{opacity:0!important;cursor:none!important}
.player-frame.maz-ui-idle .maz-controls *{pointer-events:none!important}
.player-frame.maz-ui-idle .maz-center-play.is-hidden{opacity:0!important}
@media(max-width:700px){.maz-quality-menu{right:44px;bottom:39px;min-width:120px;max-height:190px}.maz-quality-option{font-size:11px;padding:7px 8px}}

/* MAZKODI V22 — 5-second pre-roll ad */
.maz-ad-card{max-width:760px!important;width:min(94vw,760px)!important;overflow:hidden}.maz-ad-video-link{display:block;background:#000;line-height:0;cursor:pointer}.maz-ad-video{display:block;width:100%;max-height:min(65vh,520px);aspect-ratio:16/9;object-fit:contain;background:#000}.maz-ad-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.maz-ad-disclosure{font-size:12px;color:var(--muted,#9aa8bd)}#mazAdSkip:disabled{opacity:.65;cursor:not-allowed;filter:saturate(.5)}@media(max-width:600px){.maz-ad-footer{align-items:stretch;flex-direction:column}.maz-ad-video{max-height:52vh}}

/* MAZKODI ad video visibility and load-failure feedback */
.maz-ad-video-link{width:100%;min-height:180px;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}
.maz-ad-video{width:100%;height:auto;min-height:180px;max-height:min(65vh,520px);aspect-ratio:16/9;object-fit:contain;background:#000}
.maz-ad-video-error{padding:12px 16px;color:#ffd7a8;background:#2b1a0d;font-size:13px}
.maz-ad-video-error[hidden]{display:none}

/* MAZKODI promo overlay */
.maz-ad-video-link{position:relative}
.maz-ad-promo-overlay{position:absolute;right:5%;top:62%;transform:translateY(-50%);z-index:2;padding:10px 16px;border:2px solid #22d3ff;border-radius:14px;background:rgba(0,15,50,.78);color:#fff;font-weight:800;font-size:clamp(13px,2vw,22px);letter-spacing:.04em;text-shadow:0 0 8px #00bfff,0 0 18px #00bfff;box-shadow:0 0 12px #00c8ff,inset 0 0 12px rgba(0,190,255,.3);animation:mazPromoPulse 1.25s ease-in-out infinite;pointer-events:none}
.maz-ad-promo-overlay b{color:#fff}
@keyframes mazPromoPulse{0%,100%{opacity:1;filter:brightness(1);transform:translateY(-50%) scale(1)}50%{opacity:.58;filter:brightness(1.5);transform:translateY(-50%) scale(1.04)}}
@media(max-width:600px){.maz-ad-promo-overlay{right:3%;top:62%;padding:6px 8px;font-size:12px}}



/* MAZ PLAYER UI alignment fix:
   - center the play glyph geometrically in its circular button
   - center the fullscreen/expand glyph inside a clipped-corner square */
.maz-center-play{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
  text-indent:0!important;
  box-sizing:border-box!important;
}
.maz-center-play:hover{
  transform:translate(-50%,-50%) scale(1.08);
}
.player-fullscreen-btn{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  box-sizing:border-box!important;
  border-radius:0!important;
  clip-path:polygon(10% 0,90% 0,100% 10%,100% 90%,90% 100%,10% 100%,0 90%,0 10%)!important;
  line-height:1!important;
  text-align:center!important;
}
.player-fullscreen-btn b{display:none!important}
.player-fullscreen-btn:focus-visible{outline:2px solid #20d8ff!important;outline-offset:3px!important}


/* MAZKODI STABLE REPAIR — profile, continue toggle, single nav frame, player glyph */
.profile-summary{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
  gap:clamp(18px,3vw,42px)!important;min-height:150px!important;padding:24px!important;
}
.profile-summary-left{
  position:relative;z-index:1;display:flex!important;flex:0 1 48%!important;min-width:0!important;
  flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;
}
.profile-summary-left .profile-avatar-img,.profile-summary-left .profile-avatar-fallback{
  width:88px!important;height:88px!important;min-width:88px!important;max-width:88px!important;flex:0 0 88px!important;
  object-fit:cover!important;border-radius:22px!important;
}
.profile-summary-left .profile-identity{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0!important;gap:5px!important}
.profile-summary-left .profile-name{font-size:clamp(20px,2.2vw,28px)!important;line-height:1.15!important;margin:0!important}
.profile-summary-left .profile-user{font-size:12px!important;margin:0!important}
.profile-summary-right{
  position:relative;z-index:1;display:flex!important;flex:1 1 52%!important;min-width:0!important;flex-direction:column!important;
  justify-content:center!important;align-self:stretch!important;gap:12px!important;border-left:1px solid rgba(120,210,255,.28)!important;padding-left:clamp(18px,2.5vw,36px)!important;
}
.profile-summary-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important}
.profile-summary-top b{font-size:clamp(15px,1.8vw,22px)!important;white-space:nowrap!important}
.profile-summary-top strong{font-size:1.35em!important;color:#19d7f5!important;margin-left:4px!important}
.profile-summary-top span{white-space:nowrap!important;font-size:clamp(12px,1.4vw,18px)!important}
.profile-summary-right .level-progress{width:100%!important;height:12px!important;min-height:12px!important}
.profile-summary-right .level-progress i{height:100%!important}
.profile-art-glow{pointer-events:none!important}
@media(max-width:560px){
 .profile-summary{padding:16px!important;gap:12px!important;min-height:125px!important}
 .profile-summary-left{flex:0 1 46%!important;gap:10px!important}
 .profile-summary-left .profile-avatar-img,.profile-summary-left .profile-avatar-fallback{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;flex-basis:58px!important;border-radius:15px!important}
 .profile-summary-left .profile-name{font-size:18px!important}.profile-summary-left .profile-user{font-size:10px!important}
 .profile-summary-right{padding-left:12px!important;gap:9px!important}
 .profile-summary-top{flex-wrap:wrap!important;gap:4px!important}.profile-summary-top b{font-size:13px!important}.profile-summary-top span{font-size:11px!important}
 .profile-summary-right .level-progress{height:8px!important;min-height:8px!important}
}
/* Only the inner button tray should have a background, border and blur. */
#bottom-nav.bottom-nav{
 background:transparent!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 border:0!important;box-shadow:none!important;outline:0!important;padding:0!important;
}
#bottom-nav .bottom-inner{
 background:rgba(10,23,36,.96)!important;border:1px solid var(--border)!important;
 border-radius:16px!important;box-shadow:0 -12px 38px rgba(0,0,0,.24)!important;
}
.continue-panel .continue-toggle{width:100%!important;display:flex!important;align-items:center!important;gap:10px!important;cursor:pointer!important;text-align:left!important;pointer-events:auto!important}
.continue-panel .continue-toggle .panel-title{flex:1 1 auto!important;text-align:left!important}
.continue-panel .continue-list[hidden]{display:none!important}
.continue-panel:not(.is-collapsed) .continue-list{display:grid!important}
.maz-center-play{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;padding-left:0!important;text-indent:-2px!important;line-height:1!important;text-align:center!important;box-sizing:border-box!important}


/* Telegram/browser authentication gate */
.bottom-nav.auth-hidden{display:none!important}
.auth-gate{max-width:520px;margin:8vh auto 32px;padding:34px 26px;border:1px solid rgba(77,207,255,.24);border-radius:26px;background:linear-gradient(145deg,rgba(16,31,48,.96),rgba(5,12,22,.98));box-shadow:0 18px 55px rgba(0,0,0,.24);text-align:center}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:900;letter-spacing:.18em;color:#7ee7ff}
.auth-brand-dot{width:8px;height:8px;border-radius:50%;background:#49e6b2;box-shadow:0 0 14px #49e6b2}
.auth-gate h1{margin:22px 0 8px;font-size:28px;font-weight:900;color:#f3f7ff}
.auth-subtitle{max-width:390px;margin:0 auto 26px;color:#a8b7ca;font-size:14px;line-height:1.6}
.auth-actions{display:flex;flex-direction:column;align-items:center;gap:14px}
.telegram-login-slot{min-height:42px;display:flex;align-items:center;justify-content:center}
.auth-guest-btn{width:min(100%,230px);min-height:44px;border:1px solid #28435a;border-radius:12px;background:#132234;color:#eaf5ff;font-weight:800;cursor:pointer}
.auth-guest-btn:hover{border-color:#23c8f4;background:#173149}
.auth-guest-btn:disabled{opacity:.65;cursor:wait}
.auth-note{margin:20px 0 0;color:#73869d;font-size:11px;line-height:1.5}
.auth-error{margin:16px 0 0;color:#ff8f9a;font-size:13px}
@media(max-width:560px){.auth-gate{margin:5vh 10px 24px;padding:28px 18px}.auth-gate h1{font-size:24px}}

/* MAZKODI Telegram account entry: compact header icon + accessible modal */
.topbar{display:flex;align-items:center;gap:10px}.topbar-copy{min-width:0;flex:1}.telegram-top-btn{color:#e8f8ff;border-color:rgba(45,174,255,.35);background:linear-gradient(145deg,rgba(19,66,101,.95),rgba(12,28,48,.96));cursor:pointer}.telegram-top-btn svg{width:21px;height:21px;fill:#35baf7}.home-head-actions{display:flex;align-items:center;gap:9px;flex:none}.home-head-actions .telegram-top-btn{width:42px;height:42px}.telegram-auth-overlay{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(2,7,15,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.telegram-auth-overlay.open{display:flex}.telegram-auth-dialog{position:relative;width:min(100%,420px);max-height:min(88dvh,720px);overflow:auto;padding:28px 24px 22px;border:1px solid rgba(73,181,245,.28);border-radius:24px;background:radial-gradient(ellipse at 50% 0%,rgba(20,108,164,.18),transparent 55%),linear-gradient(155deg,#101d2d,#07101c 78%);box-shadow:0 28px 90px rgba(0,0,0,.55);color:#f4f8ff;text-align:center}.telegram-auth-close{position:absolute;right:13px;top:10px;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#b8c7d8;font-size:26px;cursor:pointer}.telegram-auth-logo{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:18px;background:linear-gradient(140deg,#2bc7f7,#2d83f8);box-shadow:0 10px 32px rgba(40,157,245,.22)}.telegram-auth-logo svg{width:28px;height:28px;fill:#fff}.telegram-auth-dialog h2{margin:0 0 9px;font-size:23px}.telegram-auth-description{margin:0 auto 20px;max-width:330px;color:#9bb0c9;font-size:13px;line-height:1.6}.telegram-app-login{display:flex;align-items:center;gap:12px;padding:14px;text-align:left;text-decoration:none;color:#eef8ff;border:1px solid rgba(54,181,247,.28);border-radius:15px;background:rgba(20,66,101,.34)}.telegram-app-login:hover{border-color:#35baf7;background:rgba(24,91,135,.4)}.telegram-app-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:#2a9edb;color:#fff;font-size:23px}.telegram-app-login span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}.telegram-app-login b{font-size:13px}.telegram-app-login small{color:#91a9c2;font-size:11px}.telegram-app-login strong{font-size:24px;color:#8fa7c1}.telegram-app-fallback{margin:10px 0 0;color:#91a9c2;font-size:12px}.telegram-app-fallback a{color:#47c8ff}.telegram-auth-divider{display:flex;align-items:center;gap:12px;margin:17px 0;color:#667d96;font-size:12px}.telegram-auth-divider:before,.telegram-auth-divider:after{content:"";height:1px;flex:1;background:rgba(140,175,205,.15)}.telegram-browser-login{width:100%;min-height:44px;border:1px solid rgba(140,175,205,.2);border-radius:13px;background:#15263a;color:#edf6ff;font-weight:800;cursor:pointer}.telegram-browser-login:hover{border-color:#36b8f4}.telegram-modal-widget{margin-top:15px;padding:13px 8px 3px;border-top:1px solid rgba(140,175,205,.13)}.telegram-modal-widget[hidden],.telegram-app-fallback[hidden]{display:none}.telegram-modal-widget .telegram-login-slot{justify-content:center;min-height:45px}.telegram-auth-footnote{margin:16px 0 0;color:#6f859e;font-size:10px;line-height:1.5}.profile-auth-card{display:none!important}body.modal-open{overflow:hidden}
@media(max-width:480px){.telegram-auth-dialog{padding:25px 18px 20px;border-radius:21px}.telegram-auth-dialog h2{font-size:21px}.telegram-app-login{padding:12px}}

.telegram-auth-status{margin:13px 0 0;color:#9bb9d5;font-size:12px;line-height:1.55}.telegram-auth-status:empty{display:none}


/* MAZKODI designer themes: Neon Black / Pearl Studio / Deep Ocean */
html[data-theme="neon"]{
 --bg:#020308;--bg2:#070912;--surface:#090d17;--surface2:#101626;--surface3:#18243a;
 --text:#f7fbff;--muted:#98a8c5;--subtle:#687b9b;--accent:#00f5ff;--accent2:#ff2bd6;
 --good:#54ffb7;--border:rgba(0,245,255,.16);--shadow:0 24px 75px rgba(0,0,0,.62);--shadow-soft:0 12px 38px rgba(0,0,0,.42)
}
html[data-theme="neon"] body:before{
 background:radial-gradient(ellipse at 14% 8%,rgba(0,245,255,.13),transparent 35%),radial-gradient(ellipse at 86% 28%,rgba(255,43,214,.09),transparent 32%),radial-gradient(ellipse at 50% 100%,rgba(37,70,255,.10),transparent 42%),linear-gradient(145deg,#010207 0%,#050712 48%,#02030a 100%)
}
html[data-theme="neon"] .ambient-a{background:#00f5ff;opacity:.19;filter:blur(105px)}
html[data-theme="neon"] .ambient-b{background:#ff2bd6;opacity:.13;filter:blur(115px)}
html[data-theme="neon"] .hero,html[data-theme="neon"] .detail-panel,html[data-theme="neon"] .anime-card,html[data-theme="neon"] .profile-card{
 border-color:rgba(0,245,255,.17);box-shadow:0 0 0 1px rgba(0,245,255,.025),0 18px 55px rgba(0,0,0,.48)
}
html[data-theme="neon"] .hero{box-shadow:0 0 35px rgba(0,245,255,.09),0 24px 70px rgba(0,0,0,.56)}
html[data-theme="neon"] .topbar .brand,html[data-theme="neon"] .panel-title{ text-shadow:0 0 18px rgba(0,245,255,.18)}
html[data-theme="neon"] .round-btn,html[data-theme="neon"] .back-btn{border-color:rgba(0,245,255,.22);background:linear-gradient(145deg,rgba(13,24,41,.96),rgba(5,8,16,.96));box-shadow:0 0 22px rgba(0,245,255,.06),var(--shadow-soft)}
html[data-theme="neon"] .bottom-nav{background:rgba(3,6,13,.91);border-color:rgba(0,245,255,.18);box-shadow:0 -8px 38px rgba(0,0,0,.34),0 0 22px rgba(0,245,255,.04);backdrop-filter:blur(24px)}
html[data-theme="neon"] .bottom-nav .active{box-shadow:inset 0 0 22px rgba(0,245,255,.11),0 0 18px rgba(0,245,255,.08)}
html[data-theme="neon"] .primary-btn,html[data-theme="neon"] .play-btn{box-shadow:0 0 22px rgba(0,245,255,.2)}
html[data-theme="neon"] .ambient{animation:mazNeonDrift 12s ease-in-out infinite alternate}
html[data-theme="neon"] .ambient-b{animation-delay:-5s}
@keyframes mazNeonDrift{from{transform:translate3d(0,-12px,0) scale(.94)}to{transform:translate3d(18px,22px,0) scale(1.08)}}

html[data-theme="light"]{
 --bg:#f2f3f8;--bg2:#e8ebf4;--surface:#ffffff;--surface2:#f8f9fd;--surface3:#e8ebf7;
 --text:#171b2d;--muted:#626b83;--subtle:#8c94a8;--accent:#5558e8;--accent2:#9b5de5;
 --good:#138b68;--warn:#a96a00;--danger:#d63859;--border:rgba(48,56,96,.12);
 --shadow:0 22px 60px rgba(35,42,78,.12);--shadow-soft:0 8px 24px rgba(35,42,78,.09)
}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] body:before{background:radial-gradient(ellipse at 12% 0%,rgba(116,126,255,.17),transparent 38%),radial-gradient(ellipse at 95% 20%,rgba(255,173,216,.18),transparent 32%),linear-gradient(145deg,#f9faff 0%,#eef0f8 55%,#f5f1fa 100%)}
html[data-theme="light"] .ambient-a{background:#8d95ff;opacity:.17;filter:blur(110px)}
html[data-theme="light"] .ambient-b{background:#f5a6d8;opacity:.14;filter:blur(120px)}
html[data-theme="light"] .hero{border-color:rgba(78,83,168,.17);box-shadow:0 22px 60px rgba(45,49,98,.17)}
html[data-theme="light"] .detail-panel,html[data-theme="light"] .profile-card,html[data-theme="light"] .anime-card{border-color:rgba(48,56,96,.12);box-shadow:var(--shadow-soft)}
html[data-theme="light"] .topbar .brand,html[data-theme="light"] .panel-title,html[data-theme="light"] .setting-row b,html[data-theme="light"] .profile-action b{color:var(--text)}
html[data-theme="light"] .round-btn,html[data-theme="light"] .back-btn{background:rgba(255,255,255,.88);border-color:rgba(48,56,96,.13);color:#272b43}
html[data-theme="light"] .bottom-nav{background:rgba(250,251,255,.92);border-color:rgba(48,56,96,.12);box-shadow:0 -8px 30px rgba(35,42,78,.09);backdrop-filter:blur(24px)}
html[data-theme="light"] .bottom-nav button{color:#6d748c}
html[data-theme="light"] .bottom-nav .active{background:linear-gradient(135deg,rgba(85,88,232,.12),rgba(155,93,229,.08));color:#4c4fd4;border-color:rgba(85,88,232,.22)}
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select{background:#fff;color:#171b2d;border-color:rgba(48,56,96,.17)}
html[data-theme="light"] .setting-select{background:#fff;color:#171b2d}

html[data-theme="ocean"]{
 --bg:#031020;--bg2:#061a30;--surface:#092039;--surface2:#0d2a49;--surface3:#14385b;
 --text:#f0f7ff;--muted:#9bb8d8;--subtle:#6c8bad;--accent:#38a5ff;--accent2:#6c7dff;
 --good:#58e8c1;--border:rgba(69,160,255,.18);--shadow:0 24px 75px rgba(0,5,18,.55);--shadow-soft:0 12px 34px rgba(0,8,25,.36)
}
html[data-theme="ocean"] body:before{background:radial-gradient(ellipse at 10% 0%,rgba(0,133,255,.21),transparent 38%),radial-gradient(ellipse at 88% 23%,rgba(74,89,255,.17),transparent 36%),radial-gradient(ellipse at 50% 100%,rgba(0,215,255,.08),transparent 42%),linear-gradient(145deg,#020b18 0%,#06182c 48%,#041020 100%)}
html[data-theme="ocean"] .ambient-a{background:#087dff;opacity:.23;filter:blur(115px)}
html[data-theme="ocean"] .ambient-b{background:#344cff;opacity:.2;filter:blur(125px)}
html[data-theme="ocean"] .hero,html[data-theme="ocean"] .detail-panel,html[data-theme="ocean"] .anime-card,html[data-theme="ocean"] .profile-card{border-color:rgba(69,160,255,.2);box-shadow:0 18px 55px rgba(0,5,18,.38)}
html[data-theme="ocean"] .hero{box-shadow:0 0 34px rgba(31,130,255,.12),0 24px 70px rgba(0,5,18,.46)}
html[data-theme="ocean"] .round-btn,html[data-theme="ocean"] .back-btn{background:linear-gradient(145deg,rgba(16,49,81,.95),rgba(5,23,42,.98));border-color:rgba(69,160,255,.24);box-shadow:0 0 20px rgba(31,130,255,.08),var(--shadow-soft)}
html[data-theme="ocean"] .bottom-nav{background:rgba(3,16,32,.92);border-color:rgba(69,160,255,.2);box-shadow:0 -8px 38px rgba(0,4,15,.38),0 0 20px rgba(31,130,255,.05);backdrop-filter:blur(24px)}
html[data-theme="ocean"] .bottom-nav .active{background:linear-gradient(135deg,rgba(56,165,255,.17),rgba(108,125,255,.11));border-color:rgba(69,160,255,.3);box-shadow:inset 0 0 20px rgba(56,165,255,.08)}
html[data-theme="ocean"] .primary-btn,html[data-theme="ocean"] .play-btn{box-shadow:0 0 24px rgba(56,165,255,.17)}

/* Theme picker */
.theme-intro{font-size:12px;line-height:1.55;color:var(--muted);margin:8px 0 14px}
.theme-choices{display:grid;grid-template-columns:1fr;gap:10px}
.theme-choice{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid var(--border);border-radius:17px;text-align:left;background:linear-gradient(120deg,var(--surface2),var(--surface));transition:border-color .2s,box-shadow .2s,transform .2s}
.theme-choice:active{transform:scale(.99)}
.theme-choice.active{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 32%,transparent),0 0 24px color-mix(in srgb,var(--accent) 13%,transparent)}
.theme-preview{width:88px;height:60px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex:none;border-radius:11px;border:1px solid rgba(255,255,255,.15)}
.theme-preview b{position:relative;z-index:2;font-size:8px;letter-spacing:.15em;color:#fff;text-shadow:0 0 10px currentColor}
.theme-preview i{position:absolute;width:54px;height:54px;border-radius:50%;filter:blur(13px);opacity:.9}
.theme-preview i:nth-child(1){left:-12px;top:-16px}.theme-preview i:nth-child(2){right:-12px;bottom:-15px}.theme-preview i:nth-child(3){width:80px;height:1px;filter:blur(1px);opacity:.8}
.theme-preview-neon{background:linear-gradient(140deg,#010207,#080d19 58%,#02040b)}.theme-preview-neon i:nth-child(1){background:#00f5ff}.theme-preview-neon i:nth-child(2){background:#ff2bd6}.theme-preview-neon i:nth-child(3){background:#00f5ff;box-shadow:0 0 15px #00f5ff}
.theme-preview-light{background:linear-gradient(140deg,#fbfcff,#e5e8f6)}.theme-preview-light b{color:#4d4ed3;text-shadow:none}.theme-preview-light i:nth-child(1){background:#9a9dff}.theme-preview-light i:nth-child(2){background:#f6b5dc}.theme-preview-light i:nth-child(3){background:#8d8fff}
.theme-preview-ocean{background:linear-gradient(140deg,#020b18,#0a2b4d 58%,#061326)}.theme-preview-ocean i:nth-child(1){background:#087dff}.theme-preview-ocean i:nth-child(2){background:#344cff}.theme-preview-ocean i:nth-child(3){background:#38a5ff;box-shadow:0 0 15px #38a5ff}
.theme-choice-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.theme-choice-copy b{font-size:13px;color:var(--text)}.theme-choice-copy small{font-size:10px;color:var(--muted);line-height:1.35}
.theme-check{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border);color:transparent;font-size:12px;flex:none}
.theme-choice.active .theme-check{color:#00131a;background:var(--accent);border-color:var(--accent);box-shadow:0 0 14px color-mix(in srgb,var(--accent) 45%,transparent)}
@media(min-width:680px){.theme-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-choice{flex-direction:column;align-items:stretch;position:relative;padding:12px}.theme-preview{width:100%;height:90px}.theme-check{position:absolute;right:18px;top:18px}.theme-choice-copy small{min-height:27px}}
@media(prefers-reduced-motion:reduce){html[data-theme="neon"] .ambient{animation:none!important}}

/* MAZKODI visual refinement v2 — cinematic neon, editorial light, deep ocean */
:root{color-scheme:dark}
html[data-theme="neon"]{
 color-scheme:dark;
 --bg:#020204;--bg2:#06060b;--surface:#090910;--surface2:#10101a;--surface3:#191927;
 --text:#f8f8ff;--muted:#a4a5bd;--subtle:#73758f;
 --accent:#00f5ff;--accent2:#ff35d3;--good:#57ffc2;
 --border:rgba(0,245,255,.17);--shadow:0 28px 90px rgba(0,0,0,.72);--shadow-soft:0 12px 36px rgba(0,0,0,.48)
}
html[data-theme="neon"] body{background:#020204}
html[data-theme="neon"] body:before{
 background:
 radial-gradient(ellipse 45% 32% at 4% 0%,rgba(0,245,255,.13),transparent 72%),
 radial-gradient(ellipse 42% 35% at 100% 18%,rgba(255,35,211,.105),transparent 72%),
 radial-gradient(ellipse 60% 45% at 50% 110%,rgba(71,35,255,.10),transparent 70%),
 linear-gradient(160deg,#010103 0%,#05050a 48%,#020205 100%);
}
html[data-theme="neon"] .grain{opacity:.018}
html[data-theme="neon"] .ambient-a{background:#00f5ff;opacity:.20;filter:blur(115px)}
html[data-theme="neon"] .ambient-b{background:#ff25d4;opacity:.16;filter:blur(125px)}
html[data-theme="neon"] .hero{border:1px solid rgba(0,245,255,.25);box-shadow:0 0 0 1px rgba(0,245,255,.035),0 0 48px rgba(0,245,255,.095),0 28px 80px rgba(0,0,0,.68)}
html[data-theme="neon"] .hero:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,rgba(0,245,255,.12),transparent 30%,transparent 70%,rgba(255,35,211,.10));mix-blend-mode:screen}
html[data-theme="neon"] .anime-card,html[data-theme="neon"] .profile-card,html[data-theme="neon"] .detail-panel,html[data-theme="neon"] .setting-row,html[data-theme="neon"] .achievement-card{
 border-color:rgba(0,245,255,.15);background:linear-gradient(145deg,rgba(17,18,29,.96),rgba(6,6,12,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 14px 36px rgba(0,0,0,.42)
}
html[data-theme="neon"] .anime-card:active,html[data-theme="neon"] .theme-choice:active{border-color:rgba(0,245,255,.42)}
html[data-theme="neon"] .topbar .brand,html[data-theme="neon"] .panel-title{ text-shadow:0 0 18px rgba(0,245,255,.23),0 0 38px rgba(0,245,255,.08)}
html[data-theme="neon"] .eyebrow{color:#65fbff;text-shadow:0 0 14px rgba(0,245,255,.42)}
html[data-theme="neon"] .round-btn,html[data-theme="neon"] .back-btn{border-color:rgba(0,245,255,.24);background:linear-gradient(145deg,rgba(17,18,29,.96),rgba(5,5,10,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 0 20px rgba(0,245,255,.055),var(--shadow-soft)}
html[data-theme="neon"] .primary-btn,html[data-theme="neon"] .play-btn{color:#001013;background:linear-gradient(105deg,#00f5ff 0%,#50dfff 52%,#8d8bff 100%);box-shadow:0 0 16px rgba(0,245,255,.27),0 0 36px rgba(0,245,255,.11);font-weight:850}
html[data-theme="neon"] .bottom-nav{background:rgba(3,3,8,.88);border-color:rgba(0,245,255,.19);box-shadow:0 -10px 38px rgba(0,0,0,.45),0 0 28px rgba(0,245,255,.045);backdrop-filter:blur(28px) saturate(150%)}
html[data-theme="neon"] .bottom-nav .active{background:linear-gradient(135deg,rgba(0,245,255,.13),rgba(255,53,211,.075));border-color:rgba(0,245,255,.24);box-shadow:inset 0 0 22px rgba(0,245,255,.10),0 0 20px rgba(0,245,255,.075)}
html[data-theme="neon"] .theme-choice.active{border-color:#00f5ff;box-shadow:0 0 0 1px rgba(0,245,255,.25),0 0 30px rgba(0,245,255,.11)}
html[data-theme="neon"] .theme-preview-neon{box-shadow:inset 0 0 24px rgba(0,245,255,.07),0 0 22px rgba(0,245,255,.08)}
html[data-theme="neon"] input:focus,html[data-theme="neon"] textarea:focus,html[data-theme="neon"] select:focus{outline:1px solid rgba(0,245,255,.75);box-shadow:0 0 0 3px rgba(0,245,255,.10)}

html[data-theme="light"]{
 color-scheme:light;--bg:#f4f5fa;--bg2:#e9ecf5;--surface:#fff;--surface2:#fbfbfe;--surface3:#eef0f8;
 --text:#191b2b;--muted:#646b80;--subtle:#858ca1;--accent:#5557e8;--accent2:#b14fd0;--good:#11866b;
 --border:rgba(37,43,82,.11);--shadow:0 24px 64px rgba(38,42,82,.12);--shadow-soft:0 10px 28px rgba(38,42,82,.075)
}
html[data-theme="light"] body:before{background:radial-gradient(ellipse at 8% 0%,rgba(106,118,255,.13),transparent 38%),radial-gradient(ellipse at 96% 18%,rgba(231,178,222,.13),transparent 34%),linear-gradient(145deg,#fcfcff 0%,#f0f1f8 52%,#f7f3fa 100%)}
html[data-theme="light"] .ambient-a{background:#a5aaff;opacity:.12}html[data-theme="light"] .ambient-b{background:#e6a9d8;opacity:.10}
html[data-theme="light"] .hero{border:1px solid rgba(75,79,151,.15);box-shadow:0 20px 55px rgba(35,40,85,.16)}
html[data-theme="light"] .anime-card,html[data-theme="light"] .profile-card,html[data-theme="light"] .detail-panel,html[data-theme="light"] .setting-row{background:rgba(255,255,255,.91);border-color:rgba(43,49,91,.10);box-shadow:0 8px 28px rgba(42,48,92,.065)}
html[data-theme="light"] .bottom-nav{background:rgba(252,252,255,.90);border-color:rgba(50,56,100,.10);box-shadow:0 -8px 28px rgba(40,44,90,.08);backdrop-filter:blur(24px)}
html[data-theme="light"] .primary-btn,html[data-theme="light"] .play-btn{color:#fff;background:linear-gradient(110deg,#5358e8,#8c5ce8);box-shadow:0 7px 18px rgba(85,83,220,.22)}

html[data-theme="ocean"]{
 color-scheme:dark;--bg:#020814;--bg2:#061329;--surface:#08182d;--surface2:#0b2140;--surface3:#12345a;
 --text:#f2f8ff;--muted:#a0b9d9;--subtle:#718eaf;--accent:#39b6ff;--accent2:#6b7cff;--good:#59f0ce;
 --border:rgba(57,182,255,.19);--shadow:0 28px 80px rgba(0,4,17,.64);--shadow-soft:0 12px 34px rgba(0,5,20,.43)
}
html[data-theme="ocean"] body:before{background:radial-gradient(ellipse 48% 34% at 8% 0%,rgba(0,132,255,.22),transparent 70%),radial-gradient(ellipse 42% 36% at 100% 22%,rgba(66,83,255,.18),transparent 70%),radial-gradient(ellipse 55% 40% at 48% 110%,rgba(0,224,255,.10),transparent 72%),linear-gradient(155deg,#010611 0%,#06152b 45%,#020a17 100%)}
html[data-theme="ocean"] .ambient-a{background:#087eff;opacity:.22;filter:blur(118px)}html[data-theme="ocean"] .ambient-b{background:#4a52ff;opacity:.20;filter:blur(130px)}
html[data-theme="ocean"] .hero{border:1px solid rgba(57,182,255,.28);box-shadow:0 0 38px rgba(0,132,255,.12),0 28px 75px rgba(0,4,17,.58)}
html[data-theme="ocean"] .anime-card,html[data-theme="ocean"] .profile-card,html[data-theme="ocean"] .detail-panel,html[data-theme="ocean"] .setting-row{background:linear-gradient(145deg,rgba(12,37,66,.96),rgba(5,18,36,.98));border-color:rgba(57,182,255,.17);box-shadow:inset 0 1px 0 rgba(177,221,255,.035),0 16px 40px rgba(0,4,17,.38)}
html[data-theme="ocean"] .topbar .brand,html[data-theme="ocean"] .panel-title{ text-shadow:0 0 18px rgba(57,182,255,.24)}
html[data-theme="ocean"] .primary-btn,html[data-theme="ocean"] .play-btn{background:linear-gradient(105deg,#087dff,#39b6ff 58%,#7185ff);color:#fff;box-shadow:0 0 24px rgba(28,145,255,.22)}
html[data-theme="ocean"] .bottom-nav{background:rgba(2,10,23,.90);border-color:rgba(57,182,255,.22);box-shadow:0 -8px 38px rgba(0,4,15,.4),0 0 26px rgba(0,132,255,.06);backdrop-filter:blur(28px) saturate(145%)}
html[data-theme="ocean"] .bottom-nav .active{background:linear-gradient(135deg,rgba(57,182,255,.18),rgba(107,124,255,.12));border-color:rgba(57,182,255,.3);box-shadow:inset 0 0 22px rgba(57,182,255,.10),0 0 20px rgba(57,182,255,.07)}

@media(prefers-reduced-motion:no-preference){
 html[data-theme="neon"] .ambient{animation:mazNeonDrift 18s ease-in-out infinite alternate}
 html[data-theme="neon"] .ambient-b{animation-delay:-8s}
 html[data-theme="neon"] .primary-btn:hover,html[data-theme="neon"] .play-btn:hover{box-shadow:0 0 22px rgba(0,245,255,.38),0 0 48px rgba(255,53,211,.12);filter:brightness(1.06)}
 html[data-theme="ocean"] .ambient{animation:mazNeonDrift 22s ease-in-out infinite alternate}
}
@media(prefers-reduced-motion:reduce){html[data-theme="neon"] .ambient,html[data-theme="ocean"] .ambient{animation:none!important}}


/* MAZKODI theme polish only — preserve original layout and image dimensions */
html[data-theme="neon"] body:before {
  background:
    radial-gradient(ellipse 45% 35% at 12% 0%, rgba(0,245,255,.18), transparent 72%),
    radial-gradient(ellipse 42% 38% at 92% 18%, rgba(255,35,211,.17), transparent 72%),
    radial-gradient(ellipse 45% 35% at 54% 100%, rgba(119,62,255,.12), transparent 74%),
    linear-gradient(145deg,#020207 0%,#080512 48%,#02050b 100%);
}
html[data-theme="neon"] .quick-tile,
html[data-theme="neon"] .collection-pro,
html[data-theme="neon"] .detail-panel,
html[data-theme="neon"] .filter-panel,
html[data-theme="neon"] .filter-toggle,
html[data-theme="neon"] .anime-card,
html[data-theme="neon"] .profile-card,
html[data-theme="neon"] .setting-row,
html[data-theme="neon"] .achievement-card {
  border-color:rgba(0,245,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 10px 30px rgba(0,0,0,.24), 0 0 18px rgba(0,245,255,.035);
}
html[data-theme="neon"] .quick-tile:nth-child(3n+2),
html[data-theme="neon"] .anime-card:nth-child(3n+2) { border-color:rgba(141,91,255,.28); }
html[data-theme="neon"] .quick-tile:nth-child(3n),
html[data-theme="neon"] .anime-card:nth-child(3n) { border-color:rgba(255,43,214,.24); }
html[data-theme="neon"] .hero {
  background:radial-gradient(ellipse at 90% 22%,rgba(0,207,255,.20),transparent 34%),linear-gradient(120deg,#081322,#090817 58%,#13071b);
  border-color:rgba(0,245,255,.30);
  box-shadow:0 0 32px rgba(0,245,255,.08),0 0 42px rgba(255,43,214,.055),var(--shadow);
}
html[data-theme="neon"] .primary-btn,
html[data-theme="neon"] .play-btn { background:linear-gradient(105deg,#00eefa 0%,#32bfff 48%,#b64cff 78%,#ff42c8 100%); }
html[data-theme="neon"] .bottom-nav { border-color:rgba(105,135,255,.27); }

html[data-theme="light"] body:before {
  background:
    radial-gradient(ellipse 48% 36% at 8% 0%,rgba(154,111,255,.17),transparent 70%),
    radial-gradient(ellipse 40% 38% at 95% 18%,rgba(255,153,214,.15),transparent 70%),
    radial-gradient(ellipse 50% 36% at 50% 100%,rgba(107,196,255,.10),transparent 74%),
    linear-gradient(145deg,#fcfbff 0%,#f0effb 52%,#f9f3fc 100%);
}
html[data-theme="light"] .quick-tile,
html[data-theme="light"] .collection-pro,
html[data-theme="light"] .detail-panel,
html[data-theme="light"] .filter-panel,
html[data-theme="light"] .filter-toggle,
html[data-theme="light"] .anime-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .setting-row,
html[data-theme="light"] .achievement-card {
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,246,255,.96));
  border-color:rgba(91,78,168,.15);
  box-shadow:0 9px 26px rgba(71,58,136,.075),inset 0 1px 0 rgba(255,255,255,.95);
}
html[data-theme="light"] .hero {
  background:radial-gradient(ellipse at 90% 20%,rgba(177,127,255,.19),transparent 36%),linear-gradient(115deg,#f2edff,#fff 54%,#fceefa);
}
html[data-theme="light"] .hero-overlay { background:linear-gradient(90deg,rgba(248,246,255,.9),rgba(248,246,255,.48) 62%,rgba(248,246,255,.08)); }
html[data-theme="light"] .hero-meta,html[data-theme="light"] .description,html[data-theme="light"] .detail-meta { color:#45445f; }
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .play-btn { background:linear-gradient(105deg,#7650f5,#a34ef0 58%,#e66fc7); }

html[data-theme="ocean"] body:before {
  background:
    radial-gradient(ellipse 48% 36% at 8% 0%,rgba(0,174,255,.22),transparent 70%),
    radial-gradient(ellipse 42% 38% at 95% 18%,rgba(65,83,255,.20),transparent 70%),
    radial-gradient(ellipse 48% 36% at 50% 100%,rgba(0,239,255,.10),transparent 74%),
    linear-gradient(145deg,#010712 0%,#041a34 52%,#020916 100%);
}
html[data-theme="ocean"] .quick-tile,
html[data-theme="ocean"] .collection-pro,
html[data-theme="ocean"] .detail-panel,
html[data-theme="ocean"] .filter-panel,
html[data-theme="ocean"] .filter-toggle,
html[data-theme="ocean"] .anime-card,
html[data-theme="ocean"] .profile-card,
html[data-theme="ocean"] .setting-row,
html[data-theme="ocean"] .achievement-card {
  border-color:rgba(45,183,255,.22);
  box-shadow:inset 0 1px 0 rgba(160,220,255,.04),0 12px 32px rgba(0,4,18,.30),0 0 18px rgba(0,145,255,.04);
}
html[data-theme="ocean"] .hero {
  background:radial-gradient(ellipse at 90% 20%,rgba(0,195,255,.22),transparent 35%),linear-gradient(120deg,#071a30,#06132a 58%,#071d3a);
}
html[data-theme="ocean"] .primary-btn,
html[data-theme="ocean"] .play-btn { background:linear-gradient(105deg,#007dff,#00c7ff 55%,#6979ff); }

/* Keep image sizing and desktop/mobile geometry inherited from the original stylesheet. */



/* MAZKODI THEME PACK 4K — integrated, layout-preserving overrides */
.welcome-panel-cinematic{isolation:isolate;min-height:clamp(230px,25vw,310px);padding:0;background:#080914;border-color:color-mix(in srgb,var(--accent) 42%,transparent);box-shadow:0 18px 55px rgba(0,0,0,.34),0 0 28px color-mix(in srgb,var(--accent) 9%,transparent)}
.welcome-art{position:absolute;inset:0;z-index:0;overflow:hidden;background-size:cover;background-position:center 42%;background-repeat:no-repeat;transform:translateZ(0)}
.welcome-art img{display:none!important}
html[data-theme="neon"] .welcome-art{background-image:url('/theme-hero-crimson.webp')}
html[data-theme="ocean"] .welcome-art{background-image:url('/theme-hero-ocean.webp')}
html[data-theme="light"] .welcome-art{background-image:url('/theme-hero-sakura.webp')}
.welcome-panel-cinematic:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(5,4,12,.93) 0%,rgba(7,5,15,.78) 34%,rgba(7,5,15,.18) 73%,rgba(7,5,15,.1) 100%),linear-gradient(0deg,rgba(3,4,10,.44),transparent 65%)}
.welcome-panel-cinematic:before{z-index:2;pointer-events:none}
.welcome-panel-cinematic .welcome-copy{position:absolute;left:clamp(20px,4vw,44px);bottom:clamp(20px,3vw,34px);z-index:3;max-width:min(53%,560px)}
.welcome-panel-cinematic .eyebrow{color:var(--accent);text-shadow:0 0 14px color-mix(in srgb,var(--accent) 50%,transparent)}
.welcome-panel-cinematic .welcome-copy h1{font-size:clamp(26px,3.2vw,42px);line-height:1.02;color:#fff;text-wrap:balance;text-shadow:0 3px 22px rgba(0,0,0,.65);margin:10px 0}
.welcome-panel-cinematic .welcome-copy p{color:rgba(255,255,255,.84);font-size:clamp(11px,1.15vw,14px);max-width:390px;text-shadow:0 2px 12px rgba(0,0,0,.8)}
.welcome-glow{z-index:2;pointer-events:none;right:12%;top:18%;width:160px;height:160px;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 22%,transparent),transparent 70%)}
/* Shared theme-aware surfaces: prevent legacy blue/gray blocks from leaking through */
.searchbar,.premium-search,.filter-panel,.filter-toggle,.detail-panel,.settings-panel,.settings-danger,.profile-card,.profile-hero-art,.profile-stats>div,.continue-panel,.continue-card,.watch-card,.setting-row,.review-form,.theme-choice,.collection-pro,.genre-tile,.quick-tile,.action-card,.anime-card .poster-wrap,.bottom-nav,.player-shell,.player-panel,.episode-card,.detail-panel .tab,.tabs .tab,.ranking-row,.character-item,.empty,.error-card{border-color:var(--border)}
.searchbar,.premium-search{background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:var(--shadow-soft)}
.quick-tile,.action-card,.collection-pro,.genre-tile,.filter-panel,.continue-card,.watch-card,.ranking-row,.character-item{background:linear-gradient(145deg,color-mix(in srgb,var(--surface2) 96%,transparent),color-mix(in srgb,var(--surface) 98%,transparent))}
.detail-panel,.settings-panel,.settings-danger,.profile-card,.continue-panel{background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--bg2) 98%,transparent))}
.primary-btn,.play-btn,.search-submit{background:linear-gradient(120deg,var(--accent),var(--accent2));color:#fff;border-color:color-mix(in srgb,var(--accent) 45%,transparent);box-shadow:0 8px 24px color-mix(in srgb,var(--accent) 18%,transparent)}
.link-btn,.action-card i,.collection-pro strong,.quick-tile strong{color:var(--accent)}
.action-card:hover,.genre-tile:hover,.anime-card:hover .poster-wrap{border-color:color-mix(in srgb,var(--accent) 48%,transparent);box-shadow:0 0 20px color-mix(in srgb,var(--accent) 10%,transparent)}
.badge{border:1px solid color-mix(in srgb,var(--accent) 18%,transparent)}
html[data-theme="neon"]{--accent:#ff174f;--accent2:#ff665d;--border:rgba(255,40,82,.22);--bg:#050205;--bg2:#10050b;--surface:#160811;--surface2:#220b16;--surface3:#32101f;--muted:#c29eaa;--subtle:#8b6474}
html[data-theme="neon"] body:before{background:radial-gradient(ellipse at 78% 8%,rgba(255,15,63,.16),transparent 34%),radial-gradient(ellipse at 14% 60%,rgba(147,0,43,.12),transparent 38%),linear-gradient(145deg,#030204,#0b0308 56%,#030204)}
html[data-theme="neon"] .ambient-a{background:#ff174f;opacity:.18}html[data-theme="neon"] .ambient-b{background:#8c123f;opacity:.16}
html[data-theme="neon"] .quick-tile,html[data-theme="neon"] .action-card{background:linear-gradient(145deg,rgba(38,8,20,.97),rgba(13,5,10,.98))}
html[data-theme="neon"] .bottom-nav{background:rgba(10,3,8,.93);border-color:rgba(255,40,82,.28)}
html[data-theme="ocean"]{--accent:#00d9ff;--accent2:#2786ff;--border:rgba(0,190,255,.2);--bg:#020914;--bg2:#061426;--surface:#07182b;--surface2:#0c2340;--surface3:#123557;--muted:#9bbad6;--subtle:#6889a9}
html[data-theme="ocean"] body:before{background:radial-gradient(ellipse at 75% 5%,rgba(0,153,255,.19),transparent 36%),radial-gradient(ellipse at 12% 65%,rgba(0,225,255,.09),transparent 40%),linear-gradient(145deg,#010611,#031326 55%,#020914)}
html[data-theme="ocean"] .bottom-nav{background:rgba(2,12,25,.93);border-color:rgba(0,190,255,.24)}
html[data-theme="light"]{--accent:#e52aa5;--accent2:#a34cff;--border:rgba(185,67,151,.2);--bg:#fff5fc;--bg2:#f8e8f5;--surface:#fffaff;--surface2:#f9eaf7;--surface3:#f1d8ee;--text:#24152c;--muted:#77647d;--subtle:#9c86a3;--shadow:0 20px 55px rgba(101,38,92,.13);--shadow-soft:0 9px 25px rgba(101,38,92,.09)}
html[data-theme="light"] body:before{background:radial-gradient(ellipse at 15% 0%,rgba(255,168,224,.28),transparent 38%),radial-gradient(ellipse at 90% 30%,rgba(193,153,255,.19),transparent 35%),linear-gradient(145deg,#fff8fd,#f9edf8 52%,#fff5fb)}
html[data-theme="light"] .welcome-panel-cinematic:after{background:linear-gradient(90deg,rgba(40,10,42,.84) 0%,rgba(55,15,55,.62) 35%,rgba(40,10,42,.10) 75%),linear-gradient(0deg,rgba(40,10,42,.18),transparent 70%)}
html[data-theme="light"] .welcome-panel-cinematic .welcome-copy h1{color:#fff}
html[data-theme="light"] .quick-tile,html[data-theme="light"] .action-card,html[data-theme="light"] .collection-pro,html[data-theme="light"] .genre-tile{background:linear-gradient(145deg,#fffaff,#f8eaf6)}
html[data-theme="light"] .bottom-nav{background:rgba(255,249,255,.94);border-color:rgba(185,67,151,.2)}
html[data-theme="light"] .nav-item{color:#866b8b}html[data-theme="light"] .nav-item.active{color:#8b1670}
@media(max-width:760px){.welcome-panel-cinematic{min-height:230px}.welcome-panel-cinematic .welcome-copy{max-width:75%;left:19px;bottom:18px}.welcome-panel-cinematic .welcome-copy h1{font-size:clamp(25px,6vw,32px)}.welcome-panel-cinematic:after{background:linear-gradient(90deg,rgba(5,4,12,.86),rgba(7,5,15,.45) 58%,rgba(7,5,15,.08)),linear-gradient(0deg,rgba(3,4,10,.35),transparent 70%)}.welcome-art{background-position:58% center}}
@media(min-width:761px){.welcome-panel-cinematic{min-height:270px}.welcome-panel-cinematic .welcome-copy{max-width:48%}}
/* Accurate swatches for the renamed premium themes */
.theme-preview-neon{background:linear-gradient(140deg,#050207,#190711 58%,#030205)}
.theme-preview-neon i:nth-child(1){background:#ff174f}.theme-preview-neon i:nth-child(2){background:#ff665d}.theme-preview-neon i:nth-child(3){background:#ff174f;box-shadow:0 0 15px #ff174f}
.theme-preview-light{background:linear-gradient(140deg,#fff8fd,#f5dff1)}.theme-preview-light b{color:#8f1a76;text-shadow:none}.theme-preview-light i:nth-child(1){background:#f49bd7}.theme-preview-light i:nth-child(2){background:#bd75ff}.theme-preview-light i:nth-child(3){background:#e52aa5}
.theme-preview-ocean{background:linear-gradient(140deg,#020914,#0a2d50 58%,#041326)}.theme-preview-ocean i:nth-child(1){background:#00d9ff}.theme-preview-ocean i:nth-child(2){background:#2786ff}.theme-preview-ocean i:nth-child(3){background:#00d9ff;box-shadow:0 0 15px #00d9ff}


/* MAZKODI theme-matched M brand mark */
html[data-theme="neon"] .brand-orb{
  background:linear-gradient(145deg,#ff174f 0%,#ff665d 52%,#a90c3e 100%);
  color:#fff;
  box-shadow:0 10px 30px rgba(255,23,79,.30),inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-theme="ocean"] .brand-orb{
  background:linear-gradient(145deg,#00d9ff 0%,#2786ff 58%,#2354d8 100%);
  color:#fff;
  box-shadow:0 10px 30px rgba(0,190,255,.30),inset 0 1px 0 rgba(255,255,255,.30);
}
html[data-theme="light"] .brand-orb{
  background:linear-gradient(145deg,#ff8fda 0%,#df55d6 52%,#9559f5 100%);
  color:#fff;
  box-shadow:0 10px 30px rgba(229,42,165,.25),inset 0 1px 0 rgba(255,255,255,.42);
}


/* MAZKODI theme correction: pure light surfaces + consistent crimson dark theme */
html[data-theme="light"]{
 --accent:#e52aa5;--accent2:#c14cff;--border:rgba(197,74,160,.18);
 --bg:#fffafd;--bg2:#fff6fc;--surface:#ffffff;--surface2:#fffafd;--surface3:#fff0fa;
 --text:#211326;--muted:#75647b;--subtle:#95869a;
 --shadow:0 14px 38px rgba(112,45,100,.08);--shadow-soft:0 6px 18px rgba(112,45,100,.06);
 color-scheme:light;
}
html[data-theme="light"] body:before{
 background:linear-gradient(145deg,#ffffff 0%,#fffafd 52%,#fff5fb 100%) !important;
}
html[data-theme="light"] .quick-tile,html[data-theme="light"] .collection-pro,
html[data-theme="light"] .detail-panel,html[data-theme="light"] .filter-panel,
html[data-theme="light"] .filter-toggle,html[data-theme="light"] .anime-card,
html[data-theme="light"] .profile-card,html[data-theme="light"] .setting-row,
html[data-theme="light"] .achievement-card,html[data-theme="light"] .settings-panel,
html[data-theme="light"] .continue-panel,html[data-theme="light"] .continue-card,
html[data-theme="light"] .watch-card,html[data-theme="light"] .ranking-row,
html[data-theme="light"] .character-item,html[data-theme="light"] .profile-stats>div,
html[data-theme="light"] .bottom-nav,html[data-theme="light"] .player-shell,
html[data-theme="light"] .player-panel,html[data-theme="light"] .episode-card,
html[data-theme="light"] .searchbar,html[data-theme="light"] .premium-search{
 background:#fff !important;border-color:rgba(197,74,160,.17) !important;
 box-shadow:0 5px 18px rgba(90,40,80,.045);
}
html[data-theme="light"] .profile-stats>div{background:#fff !important;color:#25172c !important}
html[data-theme="light"] .nav-item{color:#806d86 !important}
html[data-theme="light"] .nav-item.active,html[data-theme="light"] .nav-item[aria-current="page"]{
 color:#a51b7d !important;background:#fff0fa !important;border-color:#f0c5e5 !important;
 box-shadow:0 0 0 1px rgba(229,42,165,.08),0 5px 16px rgba(229,42,165,.08) !important;
}
html[data-theme="light"] .detail-panel .tab.active,html[data-theme="light"] .tabs .tab.active,
html[data-theme="light"] .filter-toggle.active,html[data-theme="light"] .theme-choice.active{
 color:#9c176f !important;background:#fff0fa !important;border-color:#eab6dc !important;
}

/* Crimson Eclipse: remove remaining cyan/blue borders and active-tab fills */
html[data-theme="neon"]{
 --accent:#ff174f;--accent2:#ff514f;--border:rgba(255,35,70,.32);
 --bg:#050203;--bg2:#0d0508;--surface:#10070a;--surface2:#19090e;--surface3:#260d14;
 --muted:#d1aab3;--subtle:#9d707c;
}
html[data-theme="neon"] .searchbar,html[data-theme="neon"] .premium-search,
html[data-theme="neon"] .filter-panel,html[data-theme="neon"] .filter-toggle,
html[data-theme="neon"] .detail-panel,html[data-theme="neon"] .settings-panel,
html[data-theme="neon"] .settings-danger,html[data-theme="neon"] .profile-card,
html[data-theme="neon"] .profile-hero-art,html[data-theme="neon"] .profile-stats>div,
html[data-theme="neon"] .continue-panel,html[data-theme="neon"] .continue-card,
html[data-theme="neon"] .watch-card,html[data-theme="neon"] .setting-row,
html[data-theme="neon"] .review-form,html[data-theme="neon"] .theme-choice,
html[data-theme="neon"] .collection-pro,html[data-theme="neon"] .genre-tile,
html[data-theme="neon"] .quick-tile,html[data-theme="neon"] .action-card,
html[data-theme="neon"] .anime-card .poster-wrap,html[data-theme="neon"] .bottom-nav,
html[data-theme="neon"] .player-shell,html[data-theme="neon"] .player-panel,
html[data-theme="neon"] .episode-card,html[data-theme="neon"] .detail-panel .tab,
html[data-theme="neon"] .tabs .tab,html[data-theme="neon"] .ranking-row,
html[data-theme="neon"] .character-item,html[data-theme="neon"] .empty,
html[data-theme="neon"] .error-card,html[data-theme="neon"] .anime-card,
html[data-theme="neon"] .profile-card,html[data-theme="neon"] .achievement-card{
 border-color:rgba(255,35,70,.30) !important;
}
html[data-theme="neon"] .nav-item.active,html[data-theme="neon"] .nav-item[aria-current="page"],
html[data-theme="neon"] .detail-panel .tab.active,html[data-theme="neon"] .tabs .tab.active,
html[data-theme="neon"] .filter-toggle.active,html[data-theme="neon"] .theme-choice.active,
html[data-theme="neon"] .episode-card.active,html[data-theme="neon"] .genre-tile.active{
 color:#fff !important;background:linear-gradient(135deg,#d90937,#ff174f 62%,#a90730) !important;
 border-color:#ff3c60 !important;box-shadow:0 0 18px rgba(255,23,79,.22) !important;
}
html[data-theme="neon"] .bottom-nav{border-color:rgba(255,35,70,.34) !important}
html[data-theme="neon"] .nav-item.active::before,html[data-theme="neon"] .nav-item.active::after{background:#ff174f !important}
html[data-theme="neon"] select,html[data-theme="neon"] option,
html[data-theme="neon"] input,html[data-theme="neon"] textarea{
 accent-color:#ff174f;
}
html[data-theme="neon"] :focus-visible{outline-color:#ff174f !important}


/* MAZKODI Crimson Eclipse player polish — preserve all previous player behavior */
html[data-theme="neon"] .player-shell,
html[data-theme="neon"] .player-panel,
html[data-theme="neon"] .compact-player-card,
html[data-theme="neon"] .player-frame-title,
html[data-theme="neon"] .player-frame-meta,
html[data-theme="neon"] .maz-player-status,
html[data-theme="neon"] .compact-choice,
html[data-theme="neon"] .player-controls,
html[data-theme="neon"] .player-control {
  --player-accent:#ff174f;
  border-color:rgba(255,35,70,.34)!important;
}
html[data-theme="neon"] .player-frame-title,
html[data-theme="neon"] .compact-player-card,
html[data-theme="neon"] .compact-choice {
  background:linear-gradient(145deg,#12070b,#080407)!important;
  color:#fff0f3!important;
}
html[data-theme="neon"] .player-fullscreen-btn,
html[data-theme="neon"] .player-control,
html[data-theme="neon"] .maz-ui-button:hover {
  border-color:rgba(255,45,80,.42)!important;
  background:rgba(255,23,79,.09)!important;
  color:#fff!important;
}
html[data-theme="neon"] .player-control:hover,
html[data-theme="neon"] .player-fullscreen-btn:hover {
  background:rgba(255,23,79,.18)!important;
  border-color:#ff365f!important;
}
html[data-theme="neon"] .player-frame input[type="range"],
html[data-theme="neon"] .player-frame video,
html[data-theme="neon"] .maz-progress,
html[data-theme="neon"] .maz-progress input,
html[data-theme="neon"] .maz-volume {
  accent-color:#ff174f!important;
}
html[data-theme="neon"] .maz-center-play,
.maz-center-play {
  position:absolute!important;
  left:50%!important;top:50%!important;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  transform:translate(-50%,-50%)!important;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  color:#fff!important;font-size:clamp(58px,7vw,92px)!important;
  line-height:1!important;text-indent:0!important;text-align:center!important;
  text-shadow:0 2px 8px rgba(0,0,0,.7),0 0 24px rgba(255,23,79,.36)!important;
  cursor:pointer!important;outline:none!important;
}
.maz-center-play:hover {
  transform:translate(-50%,-50%) scale(1.12)!important;
  background:transparent!important;box-shadow:none!important;
}
.maz-center-play:focus-visible {outline:2px solid #ff174f!important;outline-offset:8px!important}
.maz-center-play.is-hidden {opacity:0!important;pointer-events:none!important}
html[data-theme="neon"] .maz-controls-gradient {
  background:linear-gradient(0deg,rgba(10,1,5,.94),rgba(10,1,5,.55) 48%,transparent)!important;
}
html[data-theme="neon"] .maz-player-status {background:#0a0407!important;color:#c7a3ad!important}
@media(max-width:700px){.maz-center-play{font-size:clamp(48px,12vw,68px)!important}}


/* MAZKODI verified repair: stable selector layout + crimson palette + player controls */
.compact-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:12px 0 14px!important}
.compact-choice{display:grid!important;grid-template-columns:34px minmax(112px,.8fr) minmax(150px,1.2fr)!important;align-items:center!important;gap:10px!important;min-width:0!important;padding:12px!important;border:1px solid rgba(235,38,75,.48)!important;border-radius:15px!important;background:linear-gradient(135deg,rgba(60,9,20,.82),rgba(16,8,13,.96))!important;color:#f8e9ed!important;box-sizing:border-box!important}
.compact-choice .choice-icon{width:34px!important;height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(255,52,91,.5)!important;border-radius:10px!important;background:rgba(210,20,58,.15)!important;color:#ff5575!important;font-size:22px!important;font-weight:800!important;line-height:1!important}
.compact-choice .choice-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
.compact-choice .choice-label{display:block!important;color:#ff9aad!important;font-size:11px!important;font-weight:800!important;letter-spacing:.07em!important;white-space:normal!important;line-height:1.25!important}
.compact-choice .choice-copy small{display:block!important;color:#b9a3aa!important;font-size:11px!important;line-height:1.25!important}
.compact-choice select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 28px 10px 11px!important;border:1px solid rgba(255,55,92,.52)!important;border-radius:10px!important;background:#170a10!important;color:#fff3f5!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;box-sizing:border-box!important;outline:none!important}
.compact-choice select:focus{border-color:#ff315d!important;box-shadow:0 0 0 2px rgba(255,49,93,.16)!important}
.compact-choice select option{background:#170a10!important;color:#fff3f5!important}
.player-frame-wrap,.player-frame{position:relative!important}
.maz-center-play{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:clamp(64px,8vw,100px)!important;line-height:1!important;text-indent:0!important;transform:translate(-50%,-50%)!important}
.maz-center-play:hover{background:transparent!important;box-shadow:none!important;transform:translate(-50%,-50%) scale(1.08)!important}
.maz-quality-pill,.maz-speed-button{border-color:rgba(255,55,92,.5)!important;background:#190a11!important;color:#ffdce4!important}
.maz-quality-option.active,.maz-quality-option:hover{background:#8f102e!important;color:#fff!important}
.player-fullscreen-btn{border-color:rgba(255,55,92,.45)!important;background:#1b0910!important;color:#ffe8ed!important}
.maz-next-episode{position:absolute!important;z-index:40!important;top:16px!important;right:16px!important;display:flex!important;align-items:center!important;gap:16px!important;min-height:52px!important;padding:0 17px!important;border:1px solid #ff3b69!important;border-radius:15px!important;background:rgba(14,5,10,.96)!important;color:#fff!important;box-shadow:0 8px 28px rgba(255,25,76,.22)!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;letter-spacing:.055em!important;cursor:pointer!important;opacity:0;visibility:hidden;transform:translateY(-5px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease!important}
.maz-next-episode.is-visible{opacity:1!important;visibility:visible!important;transform:translateY(0)!important}
.maz-next-episode span:first-child{white-space:nowrap!important}
.maz-next-arrow{display:flex!important;align-items:center!important;justify-content:center!important;min-width:25px!important;height:28px!important;border-left:1px solid rgba(255,59,105,.65)!important;padding-left:14px!important;color:#ff5c82!important;font-size:24px!important;line-height:1!important}
@media(max-width:760px){.compact-choice-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.compact-choice{grid-template-columns:30px minmax(88px,.8fr) minmax(120px,1.2fr)!important;gap:8px!important;padding:9px!important}.compact-choice .choice-icon{width:30px!important;height:30px!important}.compact-choice select{font-size:11px!important;padding:9px 22px 9px 8px!important}.maz-next-episode{top:9px!important;right:9px!important;min-height:42px!important;padding:0 11px!important;gap:10px!important;font-size:11px!important}.maz-next-arrow{padding-left:8px!important}}
