/* Cartoon Aziz · reference-informed visual layer. Existing controls, data and routes are unchanged.
   Cairo is locally hosted under SIL OFL; see fonts/OFL-Cairo.txt. */
@font-face{font-family:"Cairo Aziz";src:url('/fonts/Cairo-Variable.ttf') format('truetype');font-style:normal;font-weight:200 900;font-display:swap}
:root{--ca-bg:#0f1014;--ca-surface:#191c23;--ca-surface-raised:#22262f;--ca-border:#2b303c;--ca-text:#f8f9fb;--ca-muted:#a5aab6;--ca-brand:#efca65;--ca-radius:10px;--ca-font:"Cairo Aziz",Tahoma,Arial,sans-serif}
body.ca-design{background:var(--ca-bg);color:var(--ca-text);font-family:var(--ca-font);font-size:15px;line-height:1.75;--muted:var(--ca-muted);--border:var(--ca-border);--panel:var(--ca-surface);--radius:var(--ca-radius)}
.ca-design button,.ca-design input,.ca-design select,.ca-design textarea{font-family:inherit}
.ca-design :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--gold,var(--ca-brand));outline-offset:4px}
.ca-design :is(button,a){-webkit-tap-highlight-color:transparent}
.ca-design :is(input,select,textarea){background:#11141a;color:var(--ca-text);border:1px solid var(--ca-border);border-radius:8px;accent-color:var(--gold,var(--ca-brand))}
.ca-design :is(input,select,textarea):focus{border-color:var(--gold,var(--ca-brand))}
.ca-design :is(button,a){transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease}
.ca-design :is(button,a):active{transform:translateY(1px)}
.ca-design .muted,.ca-design small{color:var(--ca-muted)}
.ca-design .gold{background:var(--gold,var(--ca-brand));color:#131416;border:1px solid transparent;box-shadow:none;border-radius:6px;font-weight:800;min-height:48px;padding:12px 25px}
.ca-design .gold:hover{filter:brightness(1.08)}
.ca-design .glass{background:#292d36c9;border:1px solid #ffffff24;color:#fff;border-radius:6px;box-shadow:none;min-height:48px;padding:12px 24px;backdrop-filter:blur(8px)}
.ca-design .glass:hover{background:#373d49}
/* Library shell: the reference's edge-to-edge stage, with Aziz's identity and gold accent. */
body.skills-trial.ca-library{background:var(--preview-background,var(--ca-bg));color:var(--ca-text)}
.ca-library>header{position:fixed;inset:0 0 auto;z-index:40;max-width:none;width:100%;height:84px;margin:0;padding:12px max(28px,calc((100vw - 1320px)/2));gap:28px;background:linear-gradient(180deg,#08090de8,#08090d70 70%,transparent);border:0;box-shadow:none;backdrop-filter:blur(6px)}
.ca-library>header.ca-header-scrolled{background:#101216f5;border-bottom:1px solid #ffffff0d;backdrop-filter:blur(16px)}
.ca-library .logo{flex-shrink:0;gap:10px;min-width:0}
.ca-library .logo img{width:49px;height:54px;filter:none}
.ca-library .logo b{display:block;font-size:21px;font-weight:850;white-space:nowrap}
.ca-library .logo small{display:block;font-size:10px;line-height:1.5;margin-top:0;color:#d0d1d6;opacity:.8}
.ca-library header nav{display:flex;align-items:center;justify-content:center;gap:26px;margin-inline:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;white-space:nowrap}
.ca-library header nav button{min-height:44px;padding:8px 0;font-size:15px;font-weight:700;color:#c7cad2;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none}
.ca-library header nav button:hover{color:#fff}
.ca-library header nav button.active{color:var(--gold);border-bottom-color:var(--gold)}
.ca-library header nav #save-count{border:0;background:#ffffff14;color:inherit;padding:0 6px;border-radius:4px;font-size:10px}
.ca-library .header-avatar{flex-shrink:0;min-width:44px;width:44px;height:44px;padding:3px;border:1px solid #ffffff40;background:#14171dc9;border-radius:50%}
.ca-library .header-avatar img{border-radius:50%;width:100%;height:100%;object-fit:cover}
.ca-library .design-search-trigger,.ca-library .design-menu-toggle{align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1px solid transparent;border-radius:50%;background:#ffffff08;color:#f1f2f5}
.ca-library .design-search-trigger{display:flex}
.ca-library .design-menu-toggle{display:none}
.ca-library .design-search-trigger svg,.ca-library .design-menu-toggle svg{width:21px;height:21px}
.ca-library .design-search-trigger:hover,.ca-library .design-menu-toggle:hover{background:#ffffff18}
.ca-library>main{max-width:none;width:100%;padding:0;margin:0}
.ca-library .hero{height:min(810px,94svh);min-height:660px;margin:0;width:100%;border:0;border-radius:0;background:#151922;box-shadow:none;isolation:isolate}
.ca-library .hero::before,.ca-library .hero::after{display:none}
.ca-library .hero>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 35%!important;filter:none;opacity:.9;transform:none}
.ca-library .hero .hero-shade{inset:0;background:linear-gradient(0deg,var(--ca-bg) 0%,#0f1014b8 15%,#0f10143d 55%,#0f10142b 85%),linear-gradient(270deg,#080b1273,transparent 80%)}
.ca-library .hero-copy{position:absolute;inset:auto max(28px,calc((100vw - 1320px)/2)) 100px auto;max-width:900px;width:72%;padding:0;display:flex;flex-direction:column;align-items:flex-start;z-index:2}
.ca-library .hero-copy>.overline{order:1;align-self:flex-start;background:#efca651c;border:1px solid #efca6545;border-radius:4px;padding:4px 10px;margin:0 0 14px;color:var(--gold);font-size:11px;line-height:1.7;letter-spacing:0;font-weight:800}
.ca-library .hero-copy h1{order:2;font-size:clamp(42px,4.8vw,70px);line-height:1.35;font-weight:900;letter-spacing:0;margin:0 0 14px;max-width:100%;text-wrap:balance;color:white}
.ca-library .hero-copy>.meta{order:3;font-size:14px;font-weight:700;color:#ced2dc;line-height:1.8;margin:0 0 4px}
.ca-library .hero-copy>p{order:4;font-size:14px;font-weight:500;color:#c3c7d0;margin:0 0 8px}
.ca-library .hero-description{order:5;font-size:16px;line-height:1.9;color:#e0e2e8;max-width:850px;margin:0 0 24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ca-library .hero-copy>.actions{order:6;display:flex;gap:12px;flex-wrap:wrap;margin:0}
.ca-library .hero .gold,.ca-library .hero .glass{min-width:150px;font-size:15px;min-height:52px}
.ca-library .hero-foot{position:absolute;inset:auto 0 27px;display:flex;justify-content:center;align-items:center;margin:0;padding:0;border:0;min-height:32px;z-index:3;background:transparent}
.ca-library .featured-demo-controls{display:flex;align-items:center;justify-content:center;gap:18px;width:auto;margin:0;padding:0}
.ca-library .featured-demo-dots{display:flex;gap:7px;align-items:center}
.ca-library .featured-demo-dots button{height:7px;width:7px;min-width:7px;min-height:7px;padding:0;border:0;border-radius:7px;background:#b5b9c65c;transition:width .3s,background-color .3s}
.ca-library .featured-demo-dots button.active{width:38px;background:var(--gold);box-shadow:none}
.ca-library .featured-demo-controls>button{width:32px;height:32px;min-width:32px;min-height:32px;border:1px solid #ffffff28;border-radius:50%;background:#11151a80;font-size:11px}
.ca-library .continue,.ca-library #library,.ca-library main>footer{width:calc(100% - 96px);max-width:1320px;margin-inline:auto}
.ca-library .continue{padding-top:34px;margin-top:0;margin-bottom:44px;min-height:0;background:transparent;border:0;border-radius:0}
.ca-library .section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:0 0 24px;padding:0;border:0}
.ca-library .section-heading::before,.ca-library .section-heading::after{display:none}
.ca-library .section-heading h2{font-size:25px;line-height:1.5;font-weight:800;letter-spacing:0;margin:0;padding:0}
.ca-library .section-heading>div{display:flex;align-items:center;gap:12px}
.ca-library .section-heading>div::before{content:'';width:4px;height:22px;border-radius:3px;background:var(--gold);display:block}
.ca-library .continue-empty{padding:16px 20px;margin:0;border:1px solid var(--ca-border);background:#151820;border-radius:8px;text-align:start;color:var(--ca-muted);font-size:13px;min-height:0}
.ca-library #continue-list{gap:20px;border:0}
.ca-library .continue-card{background:var(--ca-surface);border:1px solid var(--ca-border);border-radius:10px;box-shadow:none}
.ca-library #library{scroll-margin-top:108px;padding:0;margin-bottom:60px}
.ca-library #result-count{font-size:13px;color:var(--ca-muted)}
.ca-library .tools{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:0;border:0;background:none;box-shadow:none}
.ca-library .search{display:flex;flex:1;align-items:center;min-width:0;border:1px solid var(--ca-border);border-radius:8px;background:#181b22;padding:3px 16px;color:var(--ca-muted);min-height:52px}
.ca-library .search>span{font-size:28px;line-height:1}
.ca-library .search input{width:100%;min-width:0;padding:10px 12px;background:transparent;color:var(--ca-text);border:0;outline-offset:-2px;font-size:14px}
.ca-library .search button{width:36px;min-width:36px;height:36px;color:var(--ca-muted);border-radius:5px}
.ca-library .tools select{width:180px;min-height:52px;margin:0;background:#181b22;border:1px solid var(--ca-border);padding:10px 14px;border-radius:8px;color:#dce0e8;font-size:13px}
.ca-library .chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0;background:transparent;border:0;box-shadow:none}
.ca-library .chips button{border:1px solid var(--ca-border);background:transparent;color:var(--ca-muted);font-size:12px;line-height:1.5;padding:10px 17px;min-height:40px;border-radius:5px;font-weight:600}
.ca-library .chips button.selected{border-color:var(--gold);background:#efca6514;color:var(--gold);box-shadow:none}
.ca-library .grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 22px;align-items:start;padding:0;margin:0;background:transparent}
body.ca-library .grid>.card{display:flex;flex-direction:column;align-self:stretch;text-align:right;min-width:0;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;transition:transform .2s;content-visibility:auto;contain-intrinsic-size:auto 340px}
body.ca-library .card:hover{transform:translateY(-3px);box-shadow:none}
body.ca-library .card .poster{aspect-ratio:2/3!important;height:auto!important;min-height:0;position:relative;flex:none;width:100%;border:1px solid #ffffff0c;border-radius:8px;overflow:hidden;background:#191c23;transform:none!important}
body.ca-library .card .poster img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;border-radius:0!important;transform:scale(1)!important;transition:transform .3s ease!important}
body.ca-library .card:hover .poster img{transform:scale(1.025)!important}
body.ca-library .card .poster::after{content:'▶';position:absolute;inset:0;display:grid;place-items:center;background:#0006;color:#fff;font-size:34px;opacity:0;transition:opacity .2s}
body.ca-library .card:hover .poster::after{opacity:1}
body.ca-library .card h3{color:#f4f5f9;font-size:14px;font-weight:750;line-height:1.7;margin:11px 0 3px;min-height:24px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.ca-library .card p{color:var(--ca-muted);font-size:11px;line-height:1.7;margin:0;min-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ca-library .poster .poster-hd-badge{font:800 10px/1.2 var(--ca-font);background:var(--gold);color:#17181c;padding:5px 7px;border-radius:4px;inset-block-start:9px;inset-inline-end:9px}
.ca-library main>footer{padding:28px 0 34px;border-top:1px solid var(--ca-border);color:var(--gold);font-size:16px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ca-library footer span{color:var(--ca-muted);font-size:12px}
/* Dialogs retain their original forms, focus semantics and playback controls. */
body.ca-design dialog{background:var(--ca-surface);color:var(--ca-text);border:1px solid #353b48;border-radius:14px;box-shadow:0 32px 120px #0009;padding:32px;max-height:calc(100dvh - 48px)}
.ca-design dialog::backdrop{background:#080a10ce;backdrop-filter:blur(7px)}
.ca-design dialog .close{width:38px;height:38px;min-width:38px;min-height:38px;background:#ffffff0a;border:1px solid #ffffff1c;border-radius:50%;color:#d9dce4;font-size:26px}
.ca-design .detail-layout{grid-template-columns:260px minmax(0,1fr);gap:36px;position:relative}
.ca-design #detail{width:min(1160px,94vw);padding:32px}
.ca-design #detail .detail-layout>img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:9px;border:1px solid #ffffff12}
.ca-design .detail-layout h2{font-size:36px;font-weight:850;line-height:1.5;margin-top:4px}
.ca-design #detail-story{font-size:14px;line-height:2;color:#c1c6d1}
.ca-design .detail-layout h3{font-size:20px;color:var(--ca-text);font-weight:800}
.ca-design .detail-layout>div{min-width:0}
.ca-design .detail-blur{opacity:.13}
.ca-design .production-rating,.ca-design .watch-friend,.ca-design .settings-group{background:#14171e;border:1px solid var(--ca-border);border-radius:9px;box-shadow:none}
.ca-design .watch-friend{color:var(--gold);padding:20px;margin-block:24px}
.ca-design .episode-filter-tools{gap:14px;align-items:end}
.ca-design #episodes{gap:10px}
.ca-design #episodes>button{background:#222631;border:1px solid #ffffff12;color:#f2f4fa;border-radius:7px;min-height:46px}
.ca-design #episodes>button:hover{border-color:var(--gold);background:#efca6512;color:var(--gold)}
.ca-design .episode-watched{color:#66c9a1!important}
.ca-design #settings{background:var(--ca-surface)}
.ca-design .profile-preview{background:#222630;border:1px solid var(--ca-border);border-radius:10px}
.ca-design .settings-group{padding:20px;margin-block:16px}
.ca-design .settings-top h2{font-size:25px}
.ca-design .settings-group h3{font-size:16px;color:var(--ca-text)}
.ca-design .setting-row small,.ca-design .settings-note{font-size:11px;color:var(--ca-muted)}
.ca-design .theme-switch button,.ca-design .friend-room-tabs button{border-radius:7px}
.ca-design .theme-switch button.selected,.ca-design .friend-room-tabs button.selected{color:var(--gold);background:#efca6516;box-shadow:none}
.ca-design #player{background:#101217;border-radius:12px;padding:22px}
.ca-design .player-top{border-bottom:1px solid var(--ca-border);margin-bottom:16px;padding-bottom:15px}
.ca-design .player-top h2{font-size:21px;color:var(--gold)}
.ca-design #preview-video-stage{background:#000;border-radius:8px;overflow:hidden}
.ca-design .player-bottom{border:0;background:none}
.ca-design .player-bottom button{border-radius:6px}
.ca-design #friend-room{background:var(--ca-surface)}
.ca-design #friend-room .room-code-card{background:#11151c;border:1px solid var(--ca-border);border-radius:9px}
.ca-design .friend-room-tabs{border-radius:8px;background:#11151c}
.ca-design .friend-member,.ca-design .friend-wait{border-color:var(--ca-border)}
.ca-design #toast{background:#252a35;border:1px solid #ffffff1f;box-shadow:0 10px 40px #0006;color:var(--ca-text);border-radius:8px;font-size:13px}
.ca-design #friend-update-status{inset: auto 24px 24px auto;max-width:320px;background:#202530f5;border:1px solid var(--ca-border);border-radius:10px;box-shadow:0 10px 32px #0005}
.ca-design #update-announcement{background:#191d25}
/* The same visual system on account, content management and administration routes. */
.ca-design .entry{width:min(460px,calc(100% - 40px));max-width:460px;padding:52px 0 40px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:22px}
.ca-design .entry>header{display:flex;align-items:center;justify-content:center;gap:15px;height:auto;padding:0;margin:0;background:none;border:0}
.ca-design .entry>header img{width:66px;height:66px;object-fit:contain}
.ca-design .entry>header span{color:var(--ca-muted);font-size:14px}
.ca-design .panel{background:#191c23;border:1px solid var(--ca-border);border-radius:12px;padding:28px;box-shadow:0 12px 40px #0002}
.ca-design .panel h1{font-size:29px;line-height:1.5;font-weight:850;color:var(--ca-text)}
.ca-design .panel h2{font-size:20px;color:var(--ca-text);font-weight:800}
.ca-design .panel p{line-height:1.9}
.ca-design .eyebrow{color:var(--gold,var(--ca-brand));font-size:11px;letter-spacing:.12em;font-weight:800}
.ca-design .tabs{background:#101319;border:1px solid var(--ca-border);padding:5px;border-radius:8px;gap:5px}
.ca-design .tabs button{background:none;color:var(--ca-muted);border:0;min-height:44px;border-radius:5px}
.ca-design .tabs button[aria-pressed="true"]{background:#2b303b;color:var(--gold,var(--ca-brand));box-shadow:none}
.ca-design .panel input:not([type="checkbox"]):not([type="radio"]),.ca-design .panel select,.ca-design .panel textarea{min-height:47px;background:#10141a;color:var(--ca-text);border:1px solid var(--ca-border);border-radius:7px;box-shadow:none;padding:11px 13px;font-size:14px}
.ca-design .panel label{color:#e2e5ec;font-size:13px;font-weight:600}
.ca-design .panel :is(button[type="submit"],.primary){background:var(--gold,var(--ca-brand));color:#17181b;border:1px solid transparent;border-radius:6px;min-height:47px;font-weight:800}
.ca-design .panel button.secondary,.ca-design .panel button.outline,.ca-design .panel button[type="button"]{background:#222731;border:1px solid var(--ca-border);color:#e0e5ed;border-radius:7px;min-height:42px}
.ca-design .panel .error,.ca-design .error{color:#ff9c9c;background:#f0525210;border-color:#e6696933;border-radius:7px}
.ca-design .admin-shell{max-width:1360px;margin:0 auto;padding:36px 36px 70px}
.ca-design .admin-shell>header{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--ca-border);height:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:none}
.ca-design .admin-shell>header img{width:58px;height:58px;object-fit:contain}
.ca-design .admin-shell>header h1{font-size:28px;color:var(--ca-text);line-height:1.5}
.ca-design .admin-shell>header .back{border:1px solid var(--ca-border);border-radius:7px;padding:8px 14px;min-height:44px;font-size:12px;color:var(--ca-muted)}
.ca-design .admin-grid,.ca-design .content-grid{gap:22px}
.ca-design .admin-shell>section.panel{margin-block:22px}
.ca-design .content-grid>.panel{min-width:0}
.ca-design .episode-row,.ca-design .episode-server-editor{background:#11151c;border-color:var(--ca-border);border-radius:8px}
.ca-design .episode-row input{min-width:0}
.ca-design table{border-color:var(--ca-border);color:var(--ca-text)}
.ca-design th{background:#222731;color:var(--ca-muted);font-size:12px}
.ca-design td{border-color:var(--ca-border);font-size:13px}
.ca-design .back{color:var(--gold,var(--ca-brand))}
.ca-design.ca-player{background:#101217!important}
.ca-design.ca-player #player-dialog{background:#101217!important}
.ca-design.ca-player .pill{font-family:var(--ca-font);background:#252a35;border:1px solid #3a414e;border-radius:6px;min-height:42px;color:#e7e9ef;padding:9px 17px}
.ca-design.ca-player .pill[aria-pressed="true"]{border-color:var(--gold,var(--ca-brand));color:var(--gold,var(--ca-brand));background:#efca6510}
.ca-design.ca-player #experimental-status{color:var(--ca-muted)}
.ca-design.ca-player #experimental-episode{color:var(--gold,var(--ca-brand))!important}
/* Light mode remains a real user preference rather than being removed by the redesign. */
body.ca-library[data-theme="light"]{--ca-bg:#f4f5f7;--ca-surface:#fff;--ca-surface-raised:#e9ecf1;--ca-text:#1c2230;--ca-muted:#626b7a;--ca-border:#d5dbe4;background:var(--preview-background,var(--ca-bg));color:var(--ca-text)}
.ca-library[data-theme="light"] .card h3{color:var(--ca-text)}
.ca-library[data-theme="light"] :is(.search,.tools select,.continue-empty,.chips button){background:#fff;color:var(--ca-text)}
.ca-library[data-theme="light"] .search input{color:var(--ca-text)}
.ca-library[data-theme="light"] .section-heading h2{color:var(--ca-text)}
.ca-library[data-theme="light"] dialog{color:var(--ca-text)}
@media(min-width:1600px){.ca-library .hero-copy{width:65%}}
@media(max-width:1100px){.ca-library>header{padding-inline:28px;gap:18px}.ca-library header nav{gap:18px}.ca-library header nav button{font-size:13px}.ca-library .logo b{font-size:18px}.ca-library .logo small{font-size:9px}.ca-library .grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}.ca-library .hero-copy{inset-inline-start:28px;width:85%}.ca-library .hero{min-height:600px}.ca-library .continue,.ca-library #library,.ca-library main>footer{width:calc(100% - 56px)}}
@media(max-width:900px){.ca-library .design-menu-toggle{display:flex}.ca-library>header{height:78px;gap:12px}.ca-library .logo{margin-inline-end:auto}.ca-library header nav{display:none;position:absolute;inset:78px 0 auto;flex-direction:column;align-items:stretch;gap:0;padding:16px 24px 24px;background:#151922fa;border-bottom:1px solid var(--ca-border);box-shadow:0 20px 40px #0004;white-space:normal}.ca-library header.design-menu-open nav{display:flex}.ca-library header nav button{font-size:16px;text-align:right;padding:12px 16px;border:0;border-radius:6px;min-height:50px}.ca-library header nav button.active{background:#efca6512;color:var(--gold)}.ca-library .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ca-design .detail-layout{grid-template-columns:200px minmax(0,1fr);gap:24px}.ca-library .hero{height:720px;min-height:600px}.ca-library .hero-copy{width:85%}.ca-design .content-grid{grid-template-columns:1fr}}
@media(max-width:600px){body.ca-design{font-size:14px}.ca-library>header{height:74px;padding:10px 18px;gap:10px}.ca-library .logo img{width:39px;height:43px}.ca-library .logo b{font-size:17px}.ca-library .logo small{font-size:8px}.ca-library .brand-beta{font-size:.42em}.ca-library .header-avatar{width:36px;height:36px;min-width:36px}.ca-library .design-search-trigger,.ca-library .design-menu-toggle{width:38px;height:42px;padding:9px}.ca-library header nav{inset-block-start:74px}.ca-library .hero{height:650px;min-height:610px;max-height:none}.ca-library .hero>img{object-position:center 30%!important}.ca-library .hero .hero-shade{background:linear-gradient(0deg,var(--ca-bg) 0%,#0f1014e8 14%,#0f10145e 50%,#0f10142b 90%)}.ca-library .hero-copy{inset-inline-start:20px;inset-block-end:75px;width:calc(100% - 40px);max-width:none;padding:0}.ca-library .hero-copy>.overline{font-size:10px;padding:3px 8px;margin-bottom:10px}.ca-library .hero-copy h1{font-size:34px;line-height:1.5;margin-bottom:9px}.ca-library .hero-copy>.meta{font-size:12px}.ca-library .hero-copy>p{font-size:12px;margin-bottom:6px}.ca-library .hero-description{font-size:13px;line-height:1.9;-webkit-line-clamp:2;margin-bottom:18px}.ca-library .hero-copy>.actions{gap:9px;width:100%}.ca-library .hero .gold,.ca-library .hero .glass{padding:10px 14px;min-height:47px;min-width:0;font-size:13px;flex:1}.ca-library .hero-foot{inset-block-end:20px}.ca-library .continue,.ca-library #library,.ca-library main>footer{width:calc(100% - 36px)}.ca-library .continue{padding-top:20px;margin-bottom:32px}.ca-library .section-heading{margin-bottom:17px;gap:10px;align-items:center}.ca-library .section-heading h2{font-size:21px}.ca-library .section-heading>div{gap:9px}.ca-library .section-heading>div::before{height:18px;width:3px}.ca-library #result-count{font-size:11px;white-space:nowrap}.ca-library .continue-empty{font-size:11px;padding:13px 15px}.ca-library .tools{gap:9px;flex-wrap:wrap}.ca-library .search{min-height:48px;flex-basis:100%;padding-inline:11px}.ca-library .search input{font-size:16px;padding:8px;min-height:40px}.ca-library .tools select{width:100%;min-height:44px;font-size:14px;padding-block:7px}.ca-library .chips{flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none;gap:7px;padding-block:3px 8px;margin-bottom:16px}.ca-library .chips button{flex-shrink:0;padding:8px 12px;font-size:11px;min-height:40px;white-space:nowrap}.ca-library .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.ca-library .grid>.card{contain-intrinsic-size:auto 290px}.ca-library .card .poster{border-radius:7px}.ca-library .card h3{font-size:13px;line-height:1.8;margin-top:8px}.ca-library .card p{font-size:10px}.ca-library main>footer{margin-top:30px;gap:8px;padding-block:22px}.ca-library footer span{display:block;font-size:11px}.ca-design #detail{width:calc(100vw - 20px);padding:20px;max-height:calc(100dvh - 20px)}.ca-design .detail-layout{display:flex;flex-direction:column;gap:20px;align-items:stretch}.ca-design #detail .detail-layout>img{width:140px;align-self:center;aspect-ratio:2/3;border-radius:8px}.ca-design .detail-layout h2{font-size:27px;text-align:center}.ca-design #detail-meta{text-align:center}.ca-design #detail-type{display:block;text-align:center}.ca-design #detail-story{font-size:13px}.ca-design .detail-layout .actions{display:flex;flex-wrap:wrap;gap:9px}.ca-design .detail-layout .actions button{flex:1;padding-inline:12px;white-space:nowrap;font-size:12px}.ca-design .detail-layout h3{font-size:19px}.ca-design .watch-friend{padding:15px;font-size:13px}.ca-design .episode-filter-tools{gap:10px}.ca-design .episode-filter-tools input,.ca-design .episode-filter-tools select{max-width:100%;min-height:44px}.ca-design .episode-filter-tools{flex-wrap:wrap}.ca-design #settings,.ca-design #friend-room{width:calc(100vw - 20px);padding:20px}.ca-design .settings-group{padding:16px}.ca-design .setting-row{gap:10px}.ca-design .avatar-options{gap:7px}.ca-design #player{width:calc(100vw - 12px);padding:12px;border-radius:8px}.ca-design .player-top h2{font-size:15px}.ca-design .player-top{padding-bottom:10px;margin-bottom:10px}.ca-design .player-bottom{gap:6px;flex-wrap:wrap}.ca-design .player-bottom button{font-size:12px;padding:8px 12px;min-height:40px}.ca-design .player-bottom span{font-size:11px}.ca-design #friend-update-status{inset-inline:16px;inset-block-end:16px;max-width:none}.ca-design .entry{width:calc(100% - 32px);padding:32px 0;gap:22px}.ca-design .panel{padding:22px;border-radius:10px}.ca-design .panel h1{font-size:26px}.ca-design .panel input:not([type="checkbox"]):not([type="radio"]),.ca-design .panel select,.ca-design .panel textarea{font-size:16px}.ca-design .admin-shell{padding:22px 16px 50px}.ca-design .admin-shell>header{gap:12px;padding-bottom:18px}.ca-design .admin-shell>header h1{font-size:23px}.ca-design .admin-shell>header .back{margin-inline-start:0;font-size:11px;min-height:42px}.ca-design .admin-grid{grid-template-columns:1fr}.ca-design .compact-fields{grid-template-columns:1fr}.ca-design.ca-player #player-dialog{padding:12px!important}.ca-design.ca-player .pill{font-size:12px;padding:8px 11px}.ca-design.ca-player #experimental-controls{gap:7px!important}.ca-design.ca-player #experimental-episode{font-size:14px!important}}
@media(max-width:360px){.ca-library>header{padding-inline:12px;gap:6px}.ca-library .logo small{display:none}.ca-library .logo b{font-size:15px}.ca-library .logo img{width:32px;height:37px}.ca-library .header-avatar{width:32px;height:32px;min-width:32px}.ca-library .hero-copy h1{font-size:30px}.ca-library .hero{height:640px}.ca-library .continue,.ca-library #library,.ca-library main>footer{width:calc(100% - 28px)}}
@media(prefers-reduced-motion:reduce){.ca-design *,.ca-design *::before,.ca-design *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.ca-library .trial-reveal,.ca-library .trial-revealed{opacity:1;transform:none}.ca-library .card:hover,.ca-library .card:hover .poster img{transform:none!important}}
/* Keep the opening navigation legible over light artwork without blurring the scene. */
.ca-library>header:not(.ca-header-scrolled){background:linear-gradient(180deg,#090b10eb,#090b10a6 70%,#090b1008);backdrop-filter:none}
/* Missing remote art keeps the real work title and an owned brand fallback. */
body.ca-library .card .poster img[data-design-fallback="true"],.ca-library .similar-card img[data-design-fallback="true"]{object-fit:contain!important;padding:24px!important;background:#191d25}
.ca-design #episodes .preview-episode-row{background:#202530;border:1px solid #343b48;border-radius:7px}
.ca-design #episodes .preview-episode-row button{color:#e2e6ee;min-height:44px;font-size:12px}
.ca-design #episodes .preview-episode-row:hover{border-color:var(--gold)}
.ca-design #episodes .preview-episode-row.seen{background:#efca6510;border-color:#efca6555}
.ca-library[data-theme="light"] :is(.settings-group,.production-rating,.watch-friend,.profile-preview,.theme-switch){background:#edf0f5;color:var(--ca-text)}
.ca-library[data-theme="light"] :is(.settings-group h3,.setting-row b,.settings-top h2,.profile-preview b,#detail-story,.detail-layout h3){color:var(--ca-text)}
.ca-library[data-theme="light"] :is(input,select,textarea){background:#fff;color:var(--ca-text);border-color:var(--ca-border)}
.ca-design.ca-reset main{background:var(--ca-surface);border:1px solid var(--ca-border);border-radius:12px;padding:30px!important;width:calc(100% - 32px)}
.ca-reset input{width:100%;min-height:48px;padding:10px 12px;display:block;margin:8px 0 18px}
.ca-reset button[type="submit"]{width:100%;min-height:48px;background:var(--ca-brand);color:#17181b;border-radius:6px;font-weight:800}
.ca-reset h1{font-size:27px}.ca-reset #status{color:var(--ca-muted)}
body.ca-design :is(#detail,#settings,#friend-room,#update-announcement,#email-link-prompt,#email-entry,#password-change){background:var(--ca-surface);color:var(--ca-text)}
.ca-design .detail-blur:after{background:linear-gradient(180deg,#10141b60,#10141bf0)}
.ca-design .detail-blur img{opacity:.16}
.ca-library[data-theme="light"] :is(.setting-row small,.settings-note,.avatar-help,.theme-switch button,.name-setting,.restore-gold){color:#5c6474}
.ca-library[data-theme="light"] :is(.theme-switch button.selected,.friend-room-tabs button.selected,.restore-gold){color:#78560c}
.ca-library[data-theme="light"] #episodes .preview-episode-row{background:#edf0f5;border-color:#d1d7e0}
.ca-library[data-theme="light"] #episodes .preview-episode-row button{color:#273244}
body.ca-design{--gold:var(--ca-brand);--accent:var(--ca-brand)}
/* Keep small visual indicators comfortable to tap. */
.ca-library .featured-demo-dots{gap:3px}
.ca-library .featured-demo-dots button{width:24px;height:44px;min-width:24px;min-height:44px;padding:18px 8px;background-clip:content-box;border-radius:30px}
.ca-library .featured-demo-dots button.active{width:54px}
.ca-library .featured-demo-controls{gap:12px}
.ca-library .featured-demo-controls>button{width:44px;height:44px;min-width:44px;min-height:44px}
@media(max-width:600px){.ca-library .design-search-trigger,.ca-library .design-menu-toggle,.ca-library .header-avatar{width:44px;height:44px;min-width:44px}.ca-library .header-avatar{padding:5px}.ca-library>header{gap:7px}}
/* Indicator artwork is separate from its touch target; older padding overrides cannot enlarge it. */
body.ca-library .hero .hero-foot .featured-demo-dots button,body.ca-library .hero .hero-foot .featured-demo-dots button.active{background:transparent!important;padding:0!important;height:44px!important;min-height:44px!important;width:24px;min-width:24px;display:flex;align-items:center;justify-content:center;border:0;box-shadow:none}
body.ca-library .hero .hero-foot .featured-demo-dots button::before{content:'';display:block;width:7px;height:7px;background:#a5aaba80;border-radius:10px;transition:width .25s}
body.ca-library .hero .hero-foot .featured-demo-dots button.active{width:48px}
body.ca-library .hero .hero-foot .featured-demo-dots button.active::before{width:32px;background:var(--gold)}
.ca-library #continue-list{width:100%;max-width:100%;margin-inline:0;padding-inline:0}
/* Show the complete selected season in the work view; use the dialog's single scroll surface. */
body.ca-library #detail #episodes{max-height:none;height:auto;overflow:visible}
