:root{
  --bg1:#040a17; --bg2:#08162c; --panel:rgba(9,22,47,.82); --stroke:rgba(255,255,255,.08);
  --text:#eef3ff; --muted:rgba(255,255,255,.68); --blue:#46a0ff; --accent:#7d58ff; --danger:#d74b62;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at top, rgba(66,93,255,.18), transparent 18%),linear-gradient(180deg,var(--bg2),var(--bg1));min-height:100vh}
button,input,textarea,select{font:inherit}
#app{padding:18px;max-width:1500px;margin:0 auto}
.glass{background:linear-gradient(180deg, rgba(11,24,49,.92), rgba(5,14,30,.92));border:1px solid var(--stroke);box-shadow:0 18px 44px rgba(0,0,0,.3);backdrop-filter:blur(10px);border-radius:24px}
.head{display:flex;justify-content:space-between;gap:16px;padding:20px 22px;align-items:flex-start}
.brand-title{font-size:38px;font-weight:900;letter-spacing:-.03em}.version{font-size:14px;background:rgba(125,88,255,.2);border:1px solid rgba(125,88,255,.5);padding:6px 10px;border-radius:999px;vertical-align:middle;margin-left:8px}
.muted{color:var(--muted);font-size:14px;line-height:1.45}.head-actions,.summary-actions,.toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{border:none;border-radius:999px;padding:13px 18px;background:rgba(255,255,255,.08);color:#fff;font-weight:800;cursor:pointer}.btn:hover{filter:brightness(1.08)}.btn.primary{background:linear-gradient(135deg,#875fff,#6b45ff)}.btn.blue{background:linear-gradient(135deg,#52b6ff,#2f8fff)}.btn.danger{background:linear-gradient(135deg,#df576f,#b92d4c)}
.tabs{display:flex;gap:10px;margin:14px 0}.tab{padding:12px 18px;border-radius:16px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:#fff;font-weight:800;cursor:pointer}.tab.active{background:rgba(80,135,255,.18);border-color:rgba(80,135,255,.45)}
.projects-wrap,.actors-wrap{display:grid;gap:14px}.panel{padding:18px}.title{font-size:22px;font-weight:900;margin-bottom:6px}.project-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-top:12px}.project-chip{position:relative;display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);color:#fff;border-radius:18px;padding:12px;cursor:pointer;text-align:left}.project-chip.selected{outline:2px solid rgba(102,149,255,.85)}.chip-edit{position:absolute;top:10px;right:10px;width:34px;height:34px;border:none;border-radius:12px;background:rgba(255,255,255,.09);color:#fff;cursor:pointer;font-weight:900}.chip-body{padding-right:40px}.chip-poster{width:56px;height:74px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.06);font-size:11px;font-weight:800;text-transform:uppercase}.chip-poster img,.poster img,.char-avatar img,.actor-avatar img{width:100%;height:100%;object-fit:cover}
.chip-title,.project-title{font-size:20px;font-weight:900}.chip-meta{color:var(--muted);font-size:13px}
.summary-grid{display:grid;grid-template-columns:360px 1fr;gap:14px}.poster-panel{padding:16px}.poster-card{position:relative;width:100%;height:560px;border-radius:26px;overflow:hidden;background:rgba(255,255,255,.05);display:flex;align-items:stretch}.poster-card img{width:100%;height:100%;object-fit:cover}.poster-overlay{position:absolute;left:0;right:0;bottom:0;padding:18px 16px 16px;background:linear-gradient(180deg, rgba(4,10,23,0) 0%, rgba(4,10,23,.22) 18%, rgba(4,10,23,.42) 100%);backdrop-filter:blur(10px)}.poster-overlay::before{content:"";position:absolute;inset:0;background:rgba(5,14,30,.18)}.poster-overlay > *{position:relative;z-index:1}.poster-title{font-size:22px;font-weight:900;line-height:1.08;margin-bottom:4px;text-shadow:0 3px 18px rgba(0,0,0,.5)}.poster-subtitle{color:rgba(255,255,255,.84);font-size:14px;text-shadow:0 2px 12px rgba(0,0,0,.45)}.poster-fallback{padding:20px;text-align:center;color:var(--muted)}.project-info-panel{display:flex;flex-direction:column;min-height:100%}.project-desc-static{white-space:pre-wrap;line-height:1.55;min-height:420px;flex:1;font-size:15px}.stats-below{padding-top:18px}.tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.tag{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);font-size:13px;font-weight:800}
label{display:block;color:var(--muted);font-size:13px;margin:0 0 6px}.three-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:12px}.input{width:100%;height:48px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);color:#fff;padding:0 14px;outline:none}.input.area{height:130px;resize:vertical;padding:12px 14px}
.toolbar{display:grid;grid-template-columns:170px 170px 1fr auto;gap:12px;align-items:end}.metric{height:48px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;padding:0 14px;font-size:22px;font-weight:900}.episode-strip-wrap{padding:12px 14px}.episode-strip{display:flex;gap:8px;overflow:auto;padding-top:8px}.episode-strip::-webkit-scrollbar{height:8px}.episode-strip::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}.episode-chip{border:none;min-width:62px;border-radius:18px;padding:10px 12px;background:rgba(255,255,255,.05);color:#fff;display:grid;gap:2px;cursor:pointer;border:1px solid rgba(255,255,255,.08)}.episode-chip.active{background:linear-gradient(135deg,#52b6ff,#2f8fff);border-color:rgba(110,180,255,.7)}.episode-num{font-weight:900;font-size:18px;line-height:1}.episode-sub{font-size:11px;color:rgba(255,255,255,.8)}.episode-chip.active .episode-sub{color:#fff}
.board-wrap{display:grid;gap:10px}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.column{padding:14px;min-height:420px}.column-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.column-title{font-size:18px;font-weight:900}.dropzone{display:grid;gap:10px;min-height:300px}.dropzone.dragover{outline:2px dashed rgba(89,149,255,.7);border-radius:18px}.empty{color:var(--muted);padding:12px}
.char-card{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;background:linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:12px}.char-avatar{width:60px;height:60px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.05)}.avatar-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:900;color:#d8e4ff;background:linear-gradient(135deg,#24395a,#131d2c)}.avatar-fallback.big{font-size:22px}
.char-name{font-size:18px;font-weight:900;margin-bottom:6px}.compact-info{display:grid;grid-template-columns:82px 1fr 82px;gap:8px;align-items:end}.small-label{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:2px}.gender-mark,.line-mark,.actor-text{font-weight:900}.gender-mark.female{color:#ff78c7}.gender-mark.other{color:#d5d9e2}.gender-mark.male{color:#67b8ff}.line-mark.EP{color:#94a3b8}.line-mark.мало{color:#e87979}.line-mark.средне{color:#f6c55f}.line-mark.много{color:#70d38a}.actor-text{line-height:1.15}
.char-actions{display:grid;gap:10px}.mini-circle{width:42px;height:42px;border:none;border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;font-weight:900;cursor:pointer}.mini-circle.play{font-size:18px}.mini-circle.arrow{background:rgba(100,129,177,.22)}
.actor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.actor-top{display:flex;gap:14px;align-items:center;margin-bottom:10px}.actor-avatar{width:78px;height:78px;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.05)}.actor-project-links{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 12px}.actor-project-chip{width:110px;border:none;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px;color:#fff;cursor:pointer;text-align:left}.actor-project-thumb{width:100%;height:82px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.05);margin-bottom:8px}.actor-project-thumb img{width:100%;height:100%;object-fit:cover}.actor-project-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:900;background:linear-gradient(135deg,#24395a,#131d2c)}.actor-project-name{font-size:12px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.desc{color:var(--muted);line-height:1.5;min-height:44px}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.56);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;z-index:1000;overflow-y:auto}.modal{width:min(980px,96vw);padding:18px;max-height:min(92vh,calc(100vh - 40px));overflow:auto;display:flex;flex-direction:column}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;position:sticky;top:0;z-index:4;padding-bottom:10px;background:linear-gradient(180deg, rgba(11,24,49,.98), rgba(11,24,49,.9))}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-grid .full{grid-column:1/-1}.picker-list{display:grid;gap:8px;margin-top:12px;max-height:420px;overflow:auto}.picker-item{display:flex;justify-content:space-between;gap:10px;border:none;background:rgba(255,255,255,.06);color:#fff;padding:12px 14px;border-radius:14px;cursor:pointer;text-align:left}
@media (max-width: 1100px){.summary-grid,.three-grid,.board,.toolbar{grid-template-columns:1fr}.head{flex-direction:column}.compact-info{grid-template-columns:70px 1fr 70px}}

.project-chip{overflow:hidden}.chip-poster{position:relative;width:72px;height:96px;border-radius:16px}.chip-poster::after{content:"";position:absolute;inset:auto 0 0 0;height:36%;background:linear-gradient(180deg, rgba(6,12,24,0) 0%, rgba(6,12,24,.45) 100%)}

.rating-row{display:flex;align-items:center;gap:10px;margin:4px 0 14px}.rating-stars{font-size:22px;letter-spacing:2px;color:#ffd166;text-shadow:0 2px 10px rgba(0,0,0,.35)}.rating-text{font-weight:900;font-size:16px}.rating-source{font-size:12px;color:var(--muted)}
.picker-main{display:flex;align-items:center;gap:12px;min-width:0}.picker-avatar{width:44px;height:44px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center;flex:0 0 44px}.picker-avatar img{width:100%;height:100%;object-fit:cover}.picker-name{font-weight:800}

.split-2{display:grid;grid-template-columns:1fr 110px;gap:8px}.picker-copy{display:grid;gap:2px;min-width:0}.picker-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.picker-avatar .avatar-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:800;color:#fff;background:rgba(255,255,255,.08)}

.summary-actions{margin-top:14px;align-items:center}
.btn.compact{padding:10px 14px;font-size:14px}
.modal .summary-actions{gap:8px}
.modal .btn{box-shadow:none}


.login-wrap{min-height:80vh;display:grid;place-items:center}
.login-card{width:min(520px,94vw);padding:24px}
.login-logo{font-size:56px;line-height:1;margin-bottom:8px}
.login-row{display:flex;gap:10px;margin:16px 0 10px}
.login-note{margin-top:10px}
.role-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.head{align-items:center}

html, body { overflow-x: hidden; max-width: 100%; }
body { overflow-x: hidden; }
.shell, .section, .glass, .summary-grid, .library-grid { max-width: 100%; box-sizing: border-box; }
.char-avatar img, .actor-avatar img, .poster img, .chip-poster img { object-fit: cover; object-position: center 22%; }
.hover-character-card{position:fixed;z-index:99999;display:grid;grid-template-columns:120px 1fr;gap:14px;padding:14px;border-radius:22px;background:linear-gradient(180deg, rgba(10,18,36,.96), rgba(5,10,22,.96));border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 60px rgba(0,0,0,.38);backdrop-filter:blur(12px);opacity:0;transform:translateY(8px) scale(.98);transition:opacity .18s ease, transform .18s ease;pointer-events:auto;width:min(460px,calc(100vw - 24px))}
.hover-character-card.show{opacity:1;transform:translateY(0) scale(1)}
.hover-character-media{width:120px;height:170px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06)}
.hover-character-media img,.hover-character-media .avatar-fallback{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.hover-character-title{font-size:22px;font-weight:900;line-height:1.05;margin-bottom:6px}
.hover-character-sub{color:#9fc3ff;font-weight:700;margin-bottom:10px}
.hover-character-desc{color:#e5edf9;opacity:.9;line-height:1.45;max-height:180px;overflow:auto;word-break:break-word}
.hover-character-notes{margin-top:10px;color:#c8d6ee;line-height:1.35;word-break:break-word}
.hover-character-notes span{color:#fff;font-weight:800}


*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
:root{--panel-alpha:.92}
#app{max-width:var(--app-max-width,1500px);margin:0 auto}
.glass{background:linear-gradient(180deg, rgba(11,24,49,var(--panel-alpha)), rgba(5,14,30,var(--panel-alpha)))}
.projects-wrap,.actors-wrap,.summary-grid,.project-list,.board,.toolbar-actions,.head-actions,.summary-actions,.tags{min-width:0}
.project-chip,.chip-body,.project-info-panel,.desc,.project-desc-static,.project-title,.chip-title,.char-name,.actor-text,.picker-name,.picker-sub{min-width:0}
.chip-title,.project-title,.poster-title,.char-name,.actor-text,.picker-name,.picker-sub,.project-desc-static,.desc{
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
.summary-grid{grid-template-columns:minmax(280px,360px) minmax(0,1fr)}
.project-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.toolbar{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.input,.area,.metric,.readonly{max-width:100%}
.profile-top{display:flex;gap:16px;align-items:center}
.profile-avatar-large{width:84px;height:84px;border-radius:24px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.06)}
.readonly{display:flex;align-items:center}
@media (max-width: 1100px){
  .summary-grid{grid-template-columns:1fr}
  .toolbar{display:grid;grid-template-columns:1fr;gap:12px}
  .head{flex-direction:column}
  .head-actions{width:100%}
}


.login-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.profile-list-card{margin-top:10px}
.profile-list-top{display:flex;gap:12px;align-items:flex-start}
.profile-mini-avatar{width:64px;height:64px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center;flex:0 0 64px}
.profile-mini-avatar img{width:100%;height:100%;object-fit:cover}
.profile-list-meta{min-width:0}
.profile-actions-row{margin-top:10px;flex-wrap:wrap}

.compact-auth-card{max-width:560px}
.compact-auth-tabs{margin:10px 0 14px 0;display:flex;gap:10px;flex-wrap:wrap}
.compact-auth-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compact-auth-fields #auth-nick{grid-column:1/-1}
.compact-auth-actions{margin-top:14px}
@media (max-width: 760px){
  .compact-auth-fields{grid-template-columns:1fr}
}

.compact-auth-fields.one-col{grid-template-columns:1fr}
.has-custom-bg{background-size:cover;background-position:center center;background-attachment:fixed}

.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.avatar-cropper-wrap{display:grid;grid-template-columns:320px 1fr;gap:14px;align-items:start}
.avatar-cropper-preview-wrap{display:grid;place-items:center}
#avatarCropCanvas{width:320px;height:320px;border-radius:24px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.avatar-cropper-controls{display:grid;gap:10px}
.profile-list-card{overflow:hidden}
.profile-mini-avatar,.profile-avatar-large{overflow:hidden}
@media (max-width: 860px){
  .avatar-cropper-wrap{grid-template-columns:1fr}
  #avatarCropCanvas{width:100%;height:auto;aspect-ratio:1/1}
}

.public-avatar-lg{width:88px;height:88px;flex:0 0 88px;border-radius:22px;overflow:hidden}
.public-avatar-lg img{width:100%;height:100%;object-fit:cover}
.gif-preview-wrap{display:grid;place-items:center;min-height:260px}
.gif-preview-img{max-width:100%;max-height:260px;border-radius:18px}
.avatar-cropper-preview-wrap.large canvas{width:100%;max-width:420px;height:auto;border-radius:18px}
.profile-list-card .profile-list-top{align-items:center}
.profile-list-card .profile-mini-avatar img{image-rendering:auto}

.profile-avatar-large img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar-large .avatar-fallback{width:100%;height:100%}
.profile-avatar-large{flex:0 0 84px}
.avatar-cropper-preview-wrap{overflow:hidden}
.avatar-cropper-preview-wrap canvas{display:block}

:root{
  --panel-alpha:.92;
  --app-max-width:1500px;
}
#app{max-width:var(--app-max-width,1500px)}
.glass{background:linear-gradient(180deg, rgba(11,24,49,var(--panel-alpha)), rgba(5,14,30,var(--panel-alpha)))}
.page-enter{animation:fadeUp .38s ease both}
.card-animated,.actor-card,.profile-list-card,.project-chip,.char-card,.actor-project-chip,.btn,.tab,.episode-chip,.glass{transition:transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, opacity .22s ease}
.card-animated:hover,.actor-card:hover,.profile-list-card:hover,.project-chip:hover,.char-card:hover,.actor-project-chip:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(0,0,0,.28)}
.btn:hover,.tab:hover,.episode-chip:hover{transform:translateY(-1px)}
.modal-backdrop-animated{animation:fadeIn .18s ease both}
.modal-animated{animation:scaleIn .22s ease both}
.role-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);font-weight:800;font-size:13px}
.role-badge.dubber{background:rgba(82,182,255,.12);border-color:rgba(82,182,255,.3)}
.role-badge.admin{background:rgba(125,88,255,.16);border-color:rgba(125,88,255,.35)}
.role-badge.developer{background:rgba(223,87,111,.16);border-color:rgba(223,87,111,.35)}
.role-badge.founder{box-shadow:0 0 0 1px rgba(255,209,102,.4) inset;background:rgba(255,209,102,.12);border-color:rgba(255,209,102,.35)}
.summary-inline{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.role-line{margin-top:6px}
.search-toolbar{grid-template-columns:1fr !important}
.actor-card,.profile-list-card{display:grid;gap:12px}
.voice-demo-wrap{display:grid;gap:8px;margin-top:10px}
.audio-player{width:100%;height:42px;border-radius:14px;background:rgba(255,255,255,.06)}
.empty-state{padding:24px}
.tools-wrap{padding-top:8px;border-top:1px solid rgba(255,255,255,.06);margin-top:8px}
.readonly{display:flex;align-items:center}
.public-avatar-lg{width:88px;height:88px;flex:0 0 88px;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}
.public-avatar-lg img{width:100%;height:100%;object-fit:cover}
.profile-list-card .summary-actions{display:flex;flex-wrap:wrap;gap:8px}
.actor-card .summary-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-list-card .muted,.actor-card .muted{line-height:1.45}
.tools-wrap .summary-actions{margin-top:12px}
.shell{display:grid;gap:14px}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes scaleIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce){
  .page-enter,.modal-backdrop-animated,.modal-animated{animation:none}
  .card-animated,.actor-card,.profile-list-card,.project-chip,.char-card,.actor-project-chip,.btn,.tab,.episode-chip,.glass{transition:none}
}

.profile-card-rich{cursor:pointer;text-align:left}
.profile-snippet{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.actor-card-rich .actor-head-copy{min-width:0}
.actor-bio-card{display:grid;gap:10px;padding:14px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}
.actor-collapsible{min-height:0}
.actor-collapsible.expanded{display:block}
.actor-link-btn{appearance:none;border:none;background:none;padding:0;color:#9fc3ff;text-align:left;cursor:pointer;font:inherit}
.actor-link-btn:hover{text-decoration:underline}
.project-feature-row{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.feature-card{position:relative;display:grid;gap:11px;padding:14px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}
.feature-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.feature-title{font-size:17px;font-weight:900}
.subtitle-card .chip-edit{position:static;width:40px;height:40px;border-radius:14px}
.subtitle-actions{margin-top:0}
.inline-link-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.subtitle-card .chip-edit,.episode-file-card .chip-edit{position:static;width:40px;height:40px;border-radius:14px}
.episode-file-card .feature-title{display:flex;align-items:center;gap:8px}
.actor-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.picker-item.selected{outline:2px solid rgba(82,182,255,.35)}
.episode-download-status{min-height:24px}

.project-feature-row-compact{grid-template-columns:repeat(2,minmax(240px,1fr));gap:10px}
.compact-material-card{padding:13px;border-radius:18px;gap:10px}
.compact-material-card .feature-title{font-size:16px}
.compact-material-card .small-label{margin-bottom:3px}
.compact-material-card .chip-edit{width:36px;height:36px;border-radius:12px}
.compact-strip{margin-top:2px}
.compact-strip .episode-chip{min-width:58px;padding:8px 10px;border-radius:16px}
.compact-strip .episode-num{font-size:16px}
.compact-strip .episode-sub{font-size:10px}
.compact-actions{gap:8px;flex-wrap:wrap}
.compact-actions .btn{padding:11px 14px}
.episode-link-badges{display:flex;gap:8px;flex-wrap:wrap}
.tag-ready{background:rgba(82,182,255,.12);border-color:rgba(82,182,255,.35)}
.episode-file-copy,.subtitle-current-copy{min-height:36px}
@media (max-width: 1100px){
  .project-feature-row-compact{grid-template-columns:1fr}
}
@media (max-width: 980px){
  .project-feature-row{grid-template-columns:1fr}
  .actor-picker-row{grid-template-columns:1fr}
}

.chat-wrap{display:grid}
.chat-shell{display:grid;gap:14px;min-height:68vh}
.chat-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.chat-list{display:grid;gap:12px;max-height:56vh;overflow:auto;padding-right:6px}
.chat-list::-webkit-scrollbar{width:8px}.chat-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.chat-message{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:start}
.chat-message.mine .chat-bubble{background:linear-gradient(135deg,rgba(125,88,255,.28),rgba(82,182,255,.18));border-color:rgba(125,88,255,.35)}
.chat-message-avatar{width:52px;height:52px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}
.chat-message-avatar img{width:100%;height:100%;object-fit:cover}
.chat-message-body{display:grid;gap:8px;min-width:0}
.chat-message-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.chat-author-link{appearance:none;border:none;background:none;padding:0;font:inherit;color:#fff;font-weight:800;cursor:pointer}
.chat-author-link:hover{color:#9fc3ff}
.chat-bubble{padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);line-height:1.55;overflow-wrap:anywhere}
.mention-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:rgba(125,88,255,.18);border:1px solid rgba(125,88,255,.35);font-weight:800;color:#d8ccff}
.chat-compose{display:grid;gap:10px;padding:14px;border-radius:22px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}
.chat-input{height:120px}
.profile-modal-shell{width:min(1120px,96vw)}
.profile-modal-grid{display:grid;grid-template-columns:340px 1fr;gap:14px}
.profile-hero-card,.profile-detail-card{padding:20px}
.profile-hero-top{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.profile-avatar-xl{width:110px;height:110px;border-radius:28px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.06)}
.profile-avatar-xl img{width:100%;height:100%;object-fit:cover}
.profile-hero-name{font-size:30px;font-weight:900;line-height:1.05}
.profile-detail-stack{display:grid;gap:14px}
.profile-bio-box{padding:16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);white-space:pre-wrap;line-height:1.6}
.contact-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.contact-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#fff;text-decoration:none}
.contact-chip:hover{border-color:rgba(82,182,255,.35);background:rgba(82,182,255,.1)}
.profile-project-list{display:grid;gap:10px}
.profile-project-card{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;padding:12px;border:none;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:#fff;text-align:left;cursor:pointer}
.profile-project-card strong{display:block;font-size:16px;margin-bottom:4px}
.profile-project-poster{width:72px;height:96px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}
.profile-project-poster img{width:100%;height:100%;object-fit:cover}
@media (max-width: 980px){
  .profile-modal-grid{grid-template-columns:1fr}
  .chat-message{grid-template-columns:40px 1fr}
  .chat-message-avatar{width:40px;height:40px;border-radius:14px}
}


/* v1.2.0 */
.mode-switch{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.mode-chip{border:none;border-radius:999px;padding:10px 14px;background:rgba(255,255,255,.06);color:#fff;font-weight:800;cursor:pointer}
.mode-chip.active{background:linear-gradient(135deg,#875fff,#6b45ff);box-shadow:0 10px 24px rgba(107,69,255,.28)}
.tab{display:inline-flex;align-items:center;gap:8px}
.tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:linear-gradient(135deg,#875fff,#6b45ff);font-size:12px;font-weight:900}
.profile-card-rich,.profile-card-rich *{color:inherit}
.profile-card-rich,.profile-card-rich .project-title,.profile-card-rich .project-title span,.profile-card-rich .summary-inline,.profile-card-rich .role-badge,.profile-card-rich .tag{color:var(--text)}
.profile-card-rich .muted,.profile-card-rich .profile-snippet{color:var(--muted)}
.profile-name,.profile-hero-name{color:#eef3ff}
.founder-name{background:linear-gradient(135deg,#ffe6a8 0%,#ffd166 45%,#fff4c7 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 18px rgba(255,209,102,.18)}
.role-badge{color:#f4f7ff}
.role-badge.dubber{color:#a9d7ff}
.role-badge.admin{color:#d8c5ff}
.role-badge.developer{color:#ffb7c3}
.role-badge.founder{color:#ffe6a8}
.people-grid .profile-list-card{align-content:start}
.people-grid .project-title{font-size:18px;line-height:1.15}
.project-desc-static{min-height:0;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap}
.project-desc-static.expanded{max-height:none}
.project-desc-toggle{align-self:flex-start}
.subtitle-actions{flex-wrap:wrap}
.chat-list{align-content:start}
.chat-message{grid-template-columns:52px minmax(0,1fr)}
.chat-message-body{min-width:0}
.chat-bubble{max-width:min(100%,920px);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.chat-message.mine .chat-message-body{justify-self:stretch}
.message-highlight .chat-bubble{box-shadow:0 0 0 1px rgba(82,182,255,.55), 0 0 0 8px rgba(82,182,255,.08);animation:messagePulse 1.8s ease}
.notifications-wrap{display:grid}
.notifications-shell{display:grid;gap:14px}
.notifications-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.notifications-list{display:grid;gap:14px}
.notifications-section{display:grid;gap:10px}
.notification-card{display:grid;gap:8px;width:100%;text-align:left;border:none;border-radius:22px;padding:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:#fff;cursor:pointer}
.notification-card.unread{border-color:rgba(125,88,255,.4);background:linear-gradient(180deg, rgba(125,88,255,.14), rgba(255,255,255,.04))}
.notification-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.notification-title{font-size:18px;font-weight:900;line-height:1.2}
.notification-text{color:var(--muted);line-height:1.55;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.notification-side{display:grid;gap:8px;justify-items:end;text-align:right}
.notification-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}
.notification-status.unread{background:rgba(125,88,255,.18);border:1px solid rgba(125,88,255,.36)}
.notification-status.read{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.chat-compose{position:sticky;bottom:0;background:linear-gradient(180deg, rgba(11,24,49,.98), rgba(5,14,30,.98))}
.chat-input{height:120px;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.inline-link-btn{white-space:nowrap}
@keyframes messagePulse{0%{box-shadow:0 0 0 1px rgba(82,182,255,.55),0 0 0 0 rgba(82,182,255,.15)}100%{box-shadow:0 0 0 1px rgba(82,182,255,.15),0 0 0 12px rgba(82,182,255,0)}}
@media (max-width: 980px){
  .notification-row,.notifications-head{grid-template-columns:1fr;display:grid}
  .notification-side{justify-items:start;text-align:left}
  .mode-switch{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .chat-bubble{max-width:100%}
}


/* v1.3.0 fixes */
.summary-grid > *{min-width:0}
.project-info-panel,.project-feature-row,.feature-card,.subtitle-card{min-width:0;max-width:100%}
.project-desc-static,.project-desc-copy{display:block;max-width:100%;width:100%;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;line-height:1.65}
.project-desc-copy{font-size:15px}
.subtitle-strip{display:flex;gap:8px;overflow:auto;padding:6px 2px 2px;scrollbar-width:thin}
.subtitle-ep-chip{min-width:68px}
.subtitle-ep-chip.empty{opacity:.88}
.subtitle-ep-chip.has-file .episode-sub{color:#fff}
.subtitle-current-copy{margin-bottom:6px}
.actor-card-round{align-content:start;text-align:center}
.actor-round-top{display:grid;justify-items:center;gap:10px}
.actor-avatar-round{width:128px;height:128px;border-radius:999px;overflow:hidden;margin:0 auto;border:2px solid rgba(255,255,255,.08)}
.actor-round-media{position:relative;display:grid;place-items:center}
.actor-voice-fab{position:absolute;left:-8px;top:14px;width:42px;height:42px;border-radius:999px;border:2px solid rgba(255,255,255,.8);background:rgba(12,20,36,.9);color:#ff7c43;font-weight:900;cursor:pointer;z-index:2}
.actor-round-copy{display:grid;gap:8px;justify-items:center}
.actor-title-link,.actor-title-static{font-size:34px;line-height:1.05;font-weight:900;color:#eef3ff;background:none;border:none;cursor:pointer}
.actor-title-link:hover{text-decoration:underline}
.actor-bio-card-round{min-height:88px}
.actor-round-actions{justify-content:center}
.actor-inline-audio{margin-top:4px}
.chat-bubble{max-width:min(860px,100%);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;line-height:1.6}
.chat-message-body,.chat-bubble,.notification-card,.notification-text{min-width:0;max-width:100%}
.profile-avatar-large img,.profile-avatar-xl img,.public-avatar-lg img,.actor-avatar-round img{object-fit:cover;object-position:center center}
.avatar-cropper-wrap{display:grid;grid-template-columns:minmax(320px,360px) minmax(260px,1fr);gap:18px;align-items:start}
.avatar-cropper-shell{padding:8px;border-radius:24px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
#avatarCropCanvas{width:100%;height:auto;display:block;border-radius:22px;background:rgba(255,255,255,.04)}
.avatar-cropper-controls{display:grid;gap:12px}
.avatar-file-note{margin-top:-6px}
@media (max-width: 860px){.avatar-cropper-wrap{grid-template-columns:1fr}.actor-title-link,.actor-title-static{font-size:26px}}


/* v1.3.2 compact actors + uploads */
.actor-card-compact{padding:16px;gap:10px}
.actor-round-top-compact{gap:8px}
.actor-round-media-compact{min-height:96px}
.actor-avatar-round-compact{width:96px;height:96px}
.actor-title-link-compact{font-size:26px;line-height:1.04}
.actor-round-copy-compact{gap:6px}
.actor-bio-card-compact{min-height:72px;padding:14px 12px}
.actor-round-actions-compact,.actor-manage-actions{justify-content:center;gap:8px}
.actor-inline-audio{display:none !important}
.actor-voice-fab{left:-4px;top:6px;width:38px;height:38px;font-size:16px;display:grid;place-items:center;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.actor-voice-fab.playing{color:#fff;background:linear-gradient(135deg,#7d58ff,#52b6ff)}
.actor-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}

.upload-field-shell{display:grid;gap:8px}
.upload-picker-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:16px;border:1px solid rgba(82,182,255,.35);background:linear-gradient(135deg, rgba(82,182,255,.18), rgba(125,88,255,.18));color:#fff;font-weight:900;cursor:pointer;transition:transform .18s ease, filter .18s ease, border-color .18s ease;width:fit-content}
.upload-picker-btn:hover{transform:translateY(-1px);filter:brightness(1.06);border-color:rgba(125,88,255,.5)}
.upload-picker-btn-audio{border-color:rgba(125,88,255,.35)}
.profile-avatar-live img{width:100%;height:100%;object-fit:cover;display:block}
.integration-editor-card,.integration-public-card{display:grid;gap:10px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.integration-edit-grid{display:grid;gap:12px}
.integration-chip{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#fff;text-decoration:none;font-weight:800;width:fit-content}
.integration-chip-telegram{border-color:rgba(82,182,255,.34);background:linear-gradient(135deg, rgba(82,182,255,.16), rgba(82,182,255,.08))}
.integration-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.12)}
.title-sm{font-size:18px}

.project-info-panel{align-items:flex-start}
.project-desc-static{max-width:min(100%,76ch)}
.project-desc-copy{display:block;max-width:76ch}

.subtitle-strip{scrollbar-width:thin;scrollbar-color:rgba(82,182,255,.55) rgba(255,255,255,.06);padding-bottom:8px}
.subtitle-strip::-webkit-scrollbar{height:10px}
.subtitle-strip::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}
.subtitle-strip::-webkit-scrollbar-thumb{background:linear-gradient(90deg, rgba(82,182,255,.7), rgba(125,88,255,.7));border-radius:999px;border:2px solid rgba(6,14,30,.85)}
.subtitle-strip::-webkit-scrollbar-thumb:hover{filter:brightness(1.08)}
.subtitle-ep-chip{position:relative}
.subtitle-ep-chip.has-file::after{content:'';position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:999px;background:#70d38a;box-shadow:0 0 0 4px rgba(112,211,138,.14)}

@media (max-width: 860px){
  .actor-title-link-compact{font-size:22px}
  .actor-avatar-round-compact{width:84px;height:84px}
  .upload-picker-btn{width:100%}
}


.inline-cropper-backdrop{position:absolute;inset:0;display:grid;place-items:center;background:rgba(2,7,18,.72);backdrop-filter:blur(8px);z-index:1200;padding:20px;border-radius:inherit}
.inline-cropper-modal{width:min(860px,92vw);max-height:min(88vh,900px)}
.profile-modal-shell{max-height:min(92vh,calc(100vh - 40px))}
.profile-modal-shell .profile-modal-grid{min-width:0}
.profile-modal-shell .profile-detail-stack,.profile-modal-shell .profile-project-list,.profile-modal-shell .profile-bio-box{min-width:0}
.profile-modal-shell .profile-project-list{overflow-wrap:anywhere}
.profile-modal-shell .summary-actions{margin-top:14px}
.subtitle-strip{padding-bottom:10px}
.subtitle-strip::-webkit-scrollbar{height:12px}
.subtitle-strip::-webkit-scrollbar-track{background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08));border-radius:999px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.subtitle-strip::-webkit-scrollbar-thumb{background:linear-gradient(90deg, rgba(82,182,255,.95), rgba(125,88,255,.9));border-radius:999px;border:2px solid rgba(6,14,30,.9);box-shadow:0 0 16px rgba(82,182,255,.22)}
.upload-picker-btn span{pointer-events:none}


.role-badge.user{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#d7e6ff}
.role-badge.low{background:rgba(255,255,255,.06);color:#d7e6ff}.role-badge.normal{background:rgba(87,157,255,.14);color:#9fd0ff}.role-badge.high{background:rgba(255,193,7,.14);color:#ffd76a}.role-badge.urgent{background:rgba(215,75,98,.18);color:#ff9faf}
.mode-switch{display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.04);padding:8px 12px;border-radius:18px;border:1px solid rgba(255,255,255,.08)}
.mode-chip{border:none;border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.08);color:#fff;font-weight:800;cursor:pointer}.mode-chip.active{background:linear-gradient(135deg,#52b6ff,#2f8fff)}
.fixes-wrap,.tracks-wrap{display:grid;gap:14px}.fixes-list,.tracks-list{display:grid;gap:12px;margin-top:12px}.fix-card,.track-card{padding:16px}.fix-top,.track-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.fix-title,.track-title{font-size:18px;font-weight:900}.fix-badges{display:flex;gap:8px;flex-wrap:wrap}.fix-items{display:grid;gap:8px;margin:10px 0 12px}.fix-item{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}.fix-time{font-weight:900;color:#9ecbff}.fix-problem{font-weight:800}.fix-highlight{outline:2px solid rgba(82,182,255,.7)}.small-title{font-size:16px;font-weight:900}.fix-editor .fix-edit-list{display:grid;gap:10px}.fix-edit-row{display:grid;grid-template-columns:150px 1fr 1fr auto;gap:8px;align-items:center}.tracks-shell{display:grid;grid-template-columns:420px 1fr;gap:14px}.upload-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.upload-name{min-width:0;overflow-wrap:anywhere}.forbidden-card{padding:18px}.tab-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:8px;border-radius:999px;background:linear-gradient(135deg,#875fff,#6b45ff);font-size:11px;font-weight:900;padding:0 6px}
@media (max-width: 1100px){.tracks-shell{grid-template-columns:1fr}.fix-edit-row{grid-template-columns:1fr}.fix-item{grid-template-columns:1fr}}


.actor-picker-inline{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.actor-picker-inline.hidden{display:none}
.actor-picker-inline-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.actor-picker-inline-list{
  max-height:260px;
  margin-top:10px;
}
@media (max-width: 760px){
  .actor-picker-inline-head{grid-template-columns:1fr}
}

.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);font-size:12px;font-weight:900;line-height:1.1;white-space:nowrap}
.status-badge.compact{padding:6px 10px;font-size:11px}
.status-badge.planning{background:rgba(255,255,255,.06);color:#d7e6ff}
.status-badge.active{background:rgba(82,182,255,.16);color:#b6dcff;border-color:rgba(82,182,255,.34)}
.status-badge.finished{background:rgba(112,211,138,.16);color:#bff4ca;border-color:rgba(112,211,138,.28)}
.status-badge.dropped{background:rgba(215,75,98,.18);color:#ffb1be;border-color:rgba(215,75,98,.28)}
.project-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;flex-wrap:wrap}
.chip-status-wrap{margin-top:8px}
.episode-deadline-card{margin-top:14px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);flex-wrap:wrap}
.deadline-copy{font-size:14px;font-weight:800;color:#ffd88a}
.deadline-copy.muted{font-weight:600;color:var(--muted)}
.episode-flags{display:flex;gap:5px;justify-content:center;margin-top:6px;min-height:8px}
.ep-flag{display:inline-block;width:7px;height:7px;border-radius:999px;background:rgba(255,255,255,.18)}
.ep-flag.srt{background:#6eb8ff}
.ep-flag.file{background:#70d38a}
.ep-flag.deadline{background:#ffd166}
.actor-assignee-pill{margin-top:6px;display:inline-flex;align-items:center;gap:8px;border:none;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:999px;padding:6px 10px;color:#fff;cursor:pointer;font-weight:800;font-size:12px;max-width:100%}
.actor-assignee-pill img,.actor-assignee-pill .avatar-fallback{width:22px;height:22px;border-radius:999px;overflow:hidden;display:block}
.character-focus-hit{outline:2px solid rgba(82,182,255,.78);box-shadow:0 0 0 6px rgba(82,182,255,.12)}
.equipment-card{display:grid;gap:12px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.equipment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.equipment-public-list{display:grid;gap:10px}
.equipment-line{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.notification-rich-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start;margin-top:8px}
.notification-thumb{width:56px;height:74px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.06)}
.notification-thumb img{width:100%;height:100%;object-fit:cover}
.roles-wrap{display:grid;gap:14px}
.role-history-list,.role-history-mini-list{display:grid;gap:12px;margin-top:14px}
.role-history-item{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:none;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;text-align:left;cursor:pointer}
.role-history-thumb{width:88px;height:116px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}
.role-history-thumb img{width:100%;height:100%;object-fit:cover}
.role-history-copy{display:grid;gap:6px;min-width:0}
.role-history-copy strong{font-size:18px;overflow-wrap:anywhere}
.compact-role-history{grid-template-columns:64px minmax(0,1fr);padding:10px 12px;border-radius:18px}
.compact-role-history .role-history-thumb{width:64px;height:84px;border-radius:14px}
.compact-role-history .role-history-copy strong{font-size:15px}
@media (max-width: 960px){
  .summary-grid{grid-template-columns:1fr}
  .project-feature-row{grid-template-columns:1fr}
  .profile-modal-grid,.profile-detail-stack{grid-template-columns:1fr}
  .role-history-item{grid-template-columns:72px minmax(0,1fr)}
  .role-history-item .tag{display:none}
}
@media (max-width: 720px){
  .head{padding:16px 18px}
  .brand-title{font-size:30px}
  .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tab{width:100%;justify-content:center}
  .project-list,.actor-grid,.people-grid{grid-template-columns:1fr}
  .episode-chip{min-width:58px}
  .char-card{grid-template-columns:56px 1fr auto;padding:10px}
  .char-avatar{width:52px;height:52px}
  .compact-info{grid-template-columns:64px 1fr 72px}
  .equipment-grid{grid-template-columns:1fr}
  .notification-rich-row{grid-template-columns:1fr}
  .notification-thumb{width:72px;height:96px}
  .role-history-item{grid-template-columns:1fr;gap:10px}
  .role-history-thumb{width:100%;height:180px}
  .mode-switch{width:100%;justify-content:space-between}
  .head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .head-actions>.btn,.head-actions>.mode-switch{width:100%}
}
@media (max-width: 540px){
  #app{padding:12px}
  .brand-title{font-size:26px}
  .poster-card{height:420px}
  .project-desc-static{font-size:14px}
  .episode-deadline-card{padding:12px}
  .upload-picker-btn{min-height:44px}
}

.materials-shell{margin-top:16px;display:grid;gap:10px}
.materials-toggle-btn{display:flex;align-items:center;gap:10px;justify-content:space-between;width:100%;border:none;border-radius:16px;padding:12px 14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:#fff;cursor:pointer;text-align:left}
.materials-toggle-copy{font-weight:900;flex:1}
.materials-toggle-arrow{font-size:18px;line-height:1;opacity:.9}
.materials-body.hidden{display:none}
.actor-assignee-pill{margin-top:0}


/* ===== v1.5.2 compact redesign ===== */
.head.head-redesign{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;position:relative;overflow:visible}
.header-left{min-width:0;display:grid;gap:16px}
.header-brand .brand-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.primary-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.primary-tab{border:none;border-radius:16px;padding:12px 18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:900;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.primary-tab:hover{transform:translateY(-1px);border-color:rgba(116,170,255,.42);background:rgba(255,255,255,.06)}
.primary-tab.active{background:linear-gradient(135deg,rgba(82,182,255,.22),rgba(47,143,255,.14));border-color:rgba(95,165,255,.55);box-shadow:0 14px 34px rgba(28,74,155,.22)}
.header-right{display:grid;justify-items:end;gap:12px;min-width:0;position:relative}
.header-actions-compact{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:center}
.mode-switch.mode-switch-compact{padding:6px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);gap:6px}
.mode-switch.mode-switch-compact .mode-chip{padding:8px 12px;font-size:13px}
.icon-chip{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;font-weight:800;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.icon-chip svg,.profile-trigger-arrow svg{width:18px;height:18px;display:block}
.icon-chip:hover,.profile-trigger:hover{transform:translateY(-1px);border-color:rgba(116,170,255,.4);background:rgba(255,255,255,.06)}
.icon-chip.active,.profile-trigger.active{background:linear-gradient(135deg,rgba(125,88,255,.2),rgba(82,182,255,.12));border-color:rgba(127,148,255,.52)}
.icon-chip-label{white-space:nowrap}
.profile-trigger{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:8px 12px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;cursor:pointer;max-width:min(320px,100%)}
.profile-trigger-avatar{width:36px;height:36px;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.05);flex:0 0 36px}
.profile-trigger-avatar img,.profile-trigger-avatar .avatar-fallback{width:100%;height:100%;object-fit:cover}
.profile-trigger-copy{display:grid;min-width:0;text-align:left}
.profile-trigger-name{font-weight:900;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-trigger-role{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-trigger-arrow{display:grid;place-items:center;color:rgba(255,255,255,.72)}
.header-popover{width:min(360px,calc(100vw - 36px));padding:16px;border-radius:22px;display:grid;gap:12px;box-shadow:0 24px 70px rgba(0,0,0,.4)}
.header-popover.work-popover{width:min(420px,calc(100vw - 36px))}
.header-popover-list{display:grid;gap:8px}
.header-popover-item{position:relative;display:grid;gap:4px;width:100%;text-align:left;border:none;border-radius:18px;padding:12px 14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.header-popover-item strong{font-size:15px;font-weight:900;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.header-popover-item span{font-size:13px;color:var(--muted);line-height:1.35}
.header-popover-item:hover{transform:translateY(-1px);border-color:rgba(105,164,255,.4);background:rgba(255,255,255,.06)}
.header-popover-item.unread{border-color:rgba(125,88,255,.45);background:linear-gradient(135deg,rgba(125,88,255,.14),rgba(255,255,255,.04))}
.header-popover-item.active{border-color:rgba(82,182,255,.5)}
.header-popover-item.danger strong{color:#ffd7dd}
.header-popover-empty{padding:14px;border-radius:18px;background:rgba(255,255,255,.04);color:var(--muted)}
.header-popover-footer{display:flex;justify-content:flex-end;width:100%}
.header-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.utility-tabs{margin-top:12px;padding:14px 16px;border-radius:22px;display:grid;gap:12px;align-items:center}
.utility-tabs-label{display:grid;gap:4px}
.utility-tabs-label span{font-weight:900;font-size:14px;letter-spacing:.01em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.utility-tabs-label small{color:var(--muted);font-size:12px;line-height:1.35}
.utility-tabs-row{display:flex;gap:8px;flex-wrap:wrap}
.utility-tab{padding:10px 14px;border-radius:14px}
@media (max-width: 1100px){.head.head-redesign{grid-template-columns:1fr}.header-right{justify-items:stretch}.header-actions-compact{justify-content:flex-start}}
@media (max-width: 760px){.primary-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.primary-tab{padding:11px 10px;font-size:14px}.header-actions-compact{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.profile-trigger{grid-column:1/-1;max-width:none}.icon-chip{justify-content:center}.icon-chip-label{font-size:13px}.header-popover,.header-popover.work-popover{width:min(100%,calc(100vw - 32px))}}


.header-topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-bottom:18px}
.header-topbar .header-left{display:grid;gap:8px;align-content:start}
.header-topbar .header-brand{padding-right:12px}
.header-actions-min{gap:10px;align-items:center}
.icon-chip-mini{width:48px;min-width:48px;justify-content:center;padding:0;border-radius:16px}
.icon-chip-mini .tab-badge{position:absolute;top:-6px;right:-6px}
.main-nav-shell{padding:14px 18px;margin-top:12px}
.main-nav-row{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
.main-nav-pill{border:none;min-width:138px;min-height:52px;padding:0 22px;border-radius:20px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:900;font-size:17px;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.main-nav-pill:hover{transform:translateY(-1px);border-color:rgba(103,167,255,.42);background:rgba(255,255,255,.06)}
.main-nav-pill.projects-pill{box-shadow:0 12px 30px rgba(0,0,0,.16)}
.main-nav-pill.active{background:linear-gradient(135deg,#4fb2ff,#4f7dff);border-color:rgba(120,190,255,.8);box-shadow:0 16px 40px rgba(61,127,255,.22)}
.main-nav-pill:not(.active){color:rgba(255,255,255,.92)}
.utility-tabs-min{padding:10px 12px;margin-top:10px}
.utility-tabs-min .utility-tabs-row{justify-content:flex-start}
.utility-tabs-min .utility-tab{padding:10px 14px;border-radius:14px}
.header-popover.work-popover .header-popover-item strong{font-size:14px}
.header-popover.work-popover{width:min(380px,calc(100vw - 36px))}
.header-popover.notification-popover{width:min(340px,calc(100vw - 36px))}
.header-popover-footer{margin-top:4px}
@media (max-width:1100px){.header-topbar{grid-template-columns:1fr}.header-actions-min{justify-content:flex-start}.main-nav-row{justify-content:flex-start}}
@media (max-width:760px){.main-nav-shell{padding:12px 14px}.main-nav-row{gap:10px;justify-content:center}.main-nav-pill{min-width:110px;min-height:48px;font-size:15px;padding:0 16px}.icon-chip-mini{width:44px;min-width:44px}.header-actions-min{display:flex;flex-wrap:wrap}.profile-trigger{max-width:none;width:100%}}


/* ===== v1.5.4 header polish ===== */
.header-right{position:relative;overflow:visible;align-self:start}
.header-popover{position:absolute;top:calc(100% + 12px);right:0;z-index:40}
.header-popover + .header-popover-footer{display:none}
.search-popover{width:min(420px,calc(100vw - 36px))}
.header-search-popover{display:grid;gap:10px}
.header-popover-label{font-size:12px;color:var(--muted);font-weight:700}
.header-search-input-wrap{position:relative}
.header-search-input{padding-right:44px}
.header-search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:none;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-size:18px;line-height:1}
.header-search-clear.hidden{display:none}
.header-popover-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:4px}
.icon-btn{display:inline-grid;place-items:center;min-width:44px;padding:0 12px}
.icon-btn svg{width:18px;height:18px}
.ghost-danger{background:rgba(215,75,98,.12);border:1px solid rgba(215,75,98,.22)}
.ghost-danger:hover{filter:none;background:rgba(215,75,98,.18)}
@media (max-width:1100px){.header-right{justify-items:end}.header-popover{right:0;left:auto}}
@media (max-width:760px){.header-popover,.search-popover,.notification-popover,.work-popover,.profile-popover{position:absolute;left:auto;right:0;width:min(100vw - 24px, 380px)} .header-actions-min{justify-content:flex-end} }


body.modal-open{overflow:hidden}
.header-utility-modal{width:min(560px,calc(100vw - 28px));max-height:min(86vh,calc(100vh - 40px))}
.header-modal-shell{display:grid;gap:14px;min-width:0}
.header-modal-list{display:grid;gap:10px;max-height:min(56vh,520px);overflow:auto;padding-right:4px}
.header-modal-list::-webkit-scrollbar{width:8px}
.header-modal-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px}
.header-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.work-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.work-hub-card{display:grid;gap:6px;padding:16px;border:none;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#fff;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.work-hub-card strong{font-size:16px;font-weight:900}
.work-hub-card span{font-size:13px;color:var(--muted);line-height:1.4}
.work-hub-card:hover{transform:translateY(-1px);border-color:rgba(82,182,255,.35);background:rgba(255,255,255,.07)}
.work-hub-card.active{border-color:rgba(82,182,255,.48);background:linear-gradient(135deg,rgba(82,182,255,.16),rgba(255,255,255,.06))}
.notifications-modal-list .notification-card{width:100%}
.notifications-modal-list .notification-card .notification-row{grid-template-columns:minmax(0,1fr) auto;align-items:start}
.notifications-modal-list .notification-card .notification-side{justify-items:end}
.notifications-modal-list .notification-card .notification-rich-row{display:grid;grid-template-columns:56px 1fr;gap:10px;align-items:center}
.notifications-modal-list .notification-card .notification-thumb{width:56px;height:72px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}
.notifications-modal-list .notification-card .notification-thumb img{width:100%;height:100%;object-fit:cover}
.search-utility-modal .modal-head,.notification-utility-modal .modal-head,.work-utility-modal .modal-head{position:sticky;top:0;z-index:4}
.search-modal-shell .header-search-input-wrap{margin-top:4px}
@media (max-width: 820px){
  .header-utility-modal{width:min(100vw - 20px,560px)}
  .work-hub-grid{grid-template-columns:1fr}
  .header-modal-footer{flex-wrap:wrap;justify-content:flex-end}
}

#modal-root{position:relative;z-index:5000}
.modal-backdrop{z-index:5000}
.inline-cropper-backdrop{z-index:5200}
.header-utility-modal{position:relative;z-index:1}


.head.head-redesign{position:relative;z-index:60;overflow:visible}
.header-right{position:relative;z-index:80;overflow:visible;align-self:start}
.header-popover{position:absolute;top:calc(100% + 12px);right:0;z-index:120;max-height:min(72vh,680px);overflow:auto}
.header-search-popover{width:min(380px,calc(100vw - 36px))}
.header-search-input-wrap.compact{margin-top:2px}
.compact-notifications-list{max-height:min(48vh,420px)}
.header-popover-footer{position:sticky;bottom:0;padding-top:8px;background:linear-gradient(180deg,rgba(11,24,49,0),rgba(11,24,49,.98) 40%)}
@media (max-width:760px){
  .header-popover,.search-popover,.notification-popover,.work-popover,.profile-popover,.header-search-popover{right:0;left:auto;width:min(100vw - 24px,380px)}
}


/* v1.5.8 header popovers truly above content */
.header-floating-layer{position:fixed;inset:0;z-index:6500;pointer-events:none}
.header-floating-layer .header-popover{pointer-events:auto;position:fixed!important;right:auto;left:auto;top:auto;max-height:min(72vh,680px);overflow:auto;z-index:6510;box-shadow:0 28px 80px rgba(0,0,0,.45)}
.header-floating-layer .header-popover-footer{position:sticky;bottom:0}


/* v1.5.9 compact notifications dropdown */
.notification-popover{width:min(300px,calc(100vw - 24px))!important;padding:14px!important;gap:10px!important}
.notification-popover .small-title{font-size:14px!important}
.notification-popover .muted{font-size:12px!important;line-height:1.35!important}
.compact-notifications-list{max-height:min(40vh,340px)!important;gap:10px!important}
.notification-popover .notification-card{padding:12px!important;border-radius:18px!important;gap:6px!important}
.notification-popover .notification-row{gap:10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important}
.notification-popover .notification-title{font-size:14px!important;line-height:1.2!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.notification-popover .notification-text{font-size:13px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.notification-popover .notification-side{gap:6px!important;justify-items:end!important;text-align:right!important;min-width:72px!important}
.notification-popover .notification-status{padding:5px 8px!important;font-size:11px!important}
.notification-popover .notification-side .muted{font-size:11px!important;line-height:1.25!important}
.notification-popover .notification-rich-row{grid-template-columns:44px 1fr!important;gap:8px!important;align-items:start!important}
.notification-popover .notification-thumb{width:44px!important;height:56px!important;border-radius:12px!important}
.notification-popover .header-popover-footer{padding-top:6px!important}
@media (max-width:760px){
  .notification-popover{width:min(92vw,300px)!important}
  .compact-notifications-list{max-height:min(44vh,320px)!important}
}


/* v1.5.16 — библиотека проектов: широкая полка + компактный список + встроенный поиск */
.project-library-shell{overflow:hidden;position:relative}
.project-library-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}
.project-library-head .muted{max-width:780px}
.project-library-toolbar{display:grid;justify-items:end;gap:10px;flex:0 0 auto}
.project-library-controls{display:flex;align-items:center;gap:10px}
.project-library-toggle,.project-library-search-toggle{border:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);color:#e8f0ff;font-weight:800;cursor:pointer;transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease}
.project-library-toggle{padding:0 15px 0 13px;min-width:130px;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.project-library-toggle:hover,.project-library-search-toggle:hover{transform:translateY(-1px);background:rgba(255,255,255,.08);border-color:rgba(110,180,255,.22);box-shadow:0 14px 30px rgba(0,0,0,.2)}
.project-library-toggle-icon,.project-library-search-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}
.project-library-toggle-icon svg,.project-library-search-icon svg{width:18px;height:18px}
.project-library-shell.compact .project-library-toggle-icon{transform:rotate(180deg)}
.project-library-search-toggle{width:42px;padding:0}
.project-library-search-toggle.active{background:rgba(82,182,255,.14);border-color:rgba(82,182,255,.28)}
.project-library-search{width:min(320px,62vw);max-width:100%;max-height:0;opacity:0;overflow:hidden;transform:translateY(-4px);transition:max-height .24s ease,opacity .2s ease,transform .24s ease}
.project-library-search.open{max-height:60px;opacity:1;transform:translateY(0)}
.project-library-search-input{height:42px;border-radius:14px;background:rgba(255,255,255,.055)}
.project-library-stage{position:relative;padding:6px 46px 14px}
.project-library-stage::before,.project-library-stage::after{content:"";position:absolute;top:0;bottom:14px;width:82px;pointer-events:none;z-index:2;opacity:.92}
.project-library-stage::before{left:0;background:linear-gradient(90deg, rgba(4,10,23,.78) 0%, rgba(4,10,23,.48) 34%, rgba(4,10,23,0) 100%)}
.project-library-stage::after{right:0;background:linear-gradient(270deg, rgba(4,10,23,.78) 0%, rgba(4,10,23,.48) 34%, rgba(4,10,23,0) 100%)}
.project-library-shell.expanded .project-library-stage::before,.project-library-shell.expanded .project-library-stage::after{display:block}
.project-library-shell.compact .project-library-stage{padding:2px 0 0}
.project-library-shell.compact .project-library-stage::before,.project-library-shell.compact .project-library-stage::after{display:none}
.project-library-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:60px;border-radius:18px;background:rgba(8,18,40,.58);border:1px solid rgba(255,255,255,.08);font-size:26px;line-height:1;color:#fff;backdrop-filter:blur(10px);box-shadow:0 10px 28px rgba(0,0,0,.26);transition:transform .24s ease,opacity .24s ease,background .24s ease,border-color .24s ease}
.project-library-arrow.left{left:4px}
.project-library-arrow.right{right:4px}
.project-library-arrow:hover:not(.disabled){transform:translateY(-50%) scale(1.03);background:rgba(11,24,52,.78);border-color:rgba(82,182,255,.24)}
.project-library-arrow.disabled,.project-library-arrow:disabled{opacity:.28;cursor:default}
.project-library-viewport{position:relative;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;padding:4px 2px 10px}
.project-library-viewport::-webkit-scrollbar{display:none}
.project-library-track{display:flex;gap:18px;grid-template-columns:none!important;margin-top:0!important;padding:4px 12px 10px;min-width:max-content;align-items:stretch}
.project-library-track.expanded{display:flex;min-width:max-content;grid-template-columns:none!important;gap:22px;padding:4px 12px 12px}
.project-library-track.compact{display:grid;grid-template-columns:1fr!important;gap:12px;padding:2px 0 0;min-width:0}
.project-library-card{position:relative;display:block;flex:0 0 clamp(248px,24vw,312px);padding:0;border:none;background:none;color:#fff;text-align:left;cursor:pointer;outline:none;touch-action:pan-y;will-change:transform}
.project-library-card.expanded{flex:0 0 clamp(296px,27vw,380px)}
.project-library-card.compact{width:100%;flex:none}
.project-library-surface{position:relative;height:182px;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.07);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));box-shadow:0 18px 36px rgba(0,0,0,.2);transition:transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease}
.project-library-card:hover .project-library-surface,.project-library-card:focus-visible .project-library-surface{transform:translateY(-4px) scale(1.018);box-shadow:0 28px 48px rgba(0,0,0,.28);border-color:rgba(82,182,255,.22)}
.project-library-card.selected .project-library-surface{box-shadow:0 28px 54px rgba(0,0,0,.3), 0 0 0 1px rgba(98,160,255,.38) inset;border-color:rgba(98,160,255,.34)}
.project-library-surface.compact{display:grid;grid-template-columns:86px minmax(0,1fr);height:auto;min-height:96px;padding:10px 12px 10px 10px;gap:12px;border-radius:20px;background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03))}
.project-library-media{position:absolute;inset:0}
.project-library-media.compact{position:relative;inset:auto;width:86px;height:110px;border-radius:16px;overflow:hidden;box-shadow:0 12px 26px rgba(0,0,0,.22)}
.project-library-media img,.project-library-fallback{width:100%;height:100%;display:block;object-fit:cover}
.project-library-fallback{display:grid;place-items:center;background:linear-gradient(135deg,#223a61,#0f1828);font-size:48px;font-weight:900;letter-spacing:.02em}
.project-library-shade{position:absolute;inset:0;background:linear-gradient(180deg, rgba(6,12,24,.03) 0%, rgba(6,12,24,.10) 42%, rgba(6,12,24,.72) 100%)}
.project-library-topline{position:absolute;left:14px;right:14px;top:14px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;z-index:2}
.project-library-list-body{min-width:0;display:grid;align-content:center;gap:10px;padding:2px 0}
.project-library-list-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.project-library-list-text{display:grid;gap:5px;min-width:0}
.project-library-status .status-badge{padding:7px 11px;font-size:11px;border-radius:999px;background:rgba(6,16,34,.74);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);box-shadow:0 8px 18px rgba(0,0,0,.18);color:#eef5ff;text-shadow:0 1px 10px rgba(0,0,0,.18)}
.project-library-status .status-badge.planning{background:rgba(12,21,39,.76);color:#e6f0ff;border-color:rgba(255,255,255,.15)}
.project-library-status .status-badge.active{background:rgba(20,59,95,.78);color:#d8f1ff;border-color:rgba(82,182,255,.36)}
.project-library-status .status-badge.finished{background:rgba(18,62,43,.80);color:#d5ffe1;border-color:rgba(112,211,138,.36)}
.project-library-status .status-badge.dropped{background:rgba(82,25,36,.82);color:#ffd2db;border-color:rgba(215,75,98,.38)}
.project-library-edit{position:static!important;flex:0 0 auto;width:34px;height:34px;border-radius:12px;background:rgba(7,18,38,.58)!important;backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.10);cursor:pointer}
.project-library-overlay{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;display:grid;gap:4px;opacity:.94;transition:opacity .22s ease, transform .22s ease}
.project-library-card:hover .project-library-overlay,.project-library-card:focus-visible .project-library-overlay,.project-library-card.selected .project-library-overlay{opacity:1;transform:translateY(-2px)}
.project-library-title{font-size:22px;font-weight:900;line-height:1.06;text-shadow:0 6px 24px rgba(0,0,0,.45);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-library-meta{font-size:12px;color:rgba(255,255,255,.82);display:flex;gap:8px;flex-wrap:wrap;text-shadow:0 3px 14px rgba(0,0,0,.35);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.project-library-shell.expanded{padding-top:20px;padding-bottom:18px}
.project-library-shell.expanded .project-library-head{margin-bottom:16px}
.project-library-shell.expanded .project-library-head .muted{max-width:900px}
.project-library-shell.expanded .project-library-stage{padding-left:54px;padding-right:54px}
.project-library-shell.expanded .project-library-stage::before,.project-library-shell.expanded .project-library-stage::after{width:96px;opacity:.88}
.project-library-shell.expanded .project-library-surface{height:214px;border-radius:26px;box-shadow:0 22px 44px rgba(0,0,0,.24)}
.project-library-shell.expanded .project-library-title{font-size:24px}
.project-library-shell.expanded .project-library-meta{font-size:13px}
.project-library-shell.expanded .project-library-arrow{opacity:.94}
.project-library-shell.compact{padding-top:18px;padding-bottom:18px}
.project-library-shell.compact .project-library-head{margin-bottom:12px}
.project-library-shell.compact .project-library-head .muted{max-width:760px}
.project-library-shell.compact .project-library-viewport{overflow:visible;padding:0}
.project-library-shell.compact .project-library-card:hover .project-library-surface,.project-library-shell.compact .project-library-card:focus-visible .project-library-surface{transform:translateY(-2px) scale(1.006)}
.project-library-shell.compact .project-library-title{font-size:20px;text-shadow:none}
.project-library-shell.compact .project-library-meta{text-shadow:none;color:rgba(255,255,255,.72)}
.project-library-empty{display:grid;gap:6px;padding:18px 18px 16px;border-radius:20px;background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.12);min-width:0}
.project-library-empty-title{font-size:18px;font-weight:900}
.project-library-card:focus-visible .project-library-surface{box-shadow:0 28px 48px rgba(0,0,0,.28),0 0 0 2px rgba(110,180,255,.42)}
@media (max-width: 980px){
  .project-library-head{align-items:stretch;flex-direction:column}
  .project-library-head .muted{max-width:none}
  .project-library-toolbar{justify-items:stretch}
  .project-library-controls{justify-content:flex-start}
  .project-library-search{width:min(100%,360px)}
  .project-library-stage{padding:4px 34px 12px}
  .project-library-stage::before,.project-library-stage::after{width:52px}
  .project-library-card.expanded{flex-basis:min(78vw,318px)}
  .project-library-shell.expanded .project-library-surface{height:184px}
}
@media (max-width: 640px){
  .project-library-toggle{min-width:118px;padding:0 13px 0 12px}
  .project-library-toggle-text{font-size:13px}
  .project-library-arrow{width:34px;height:50px;border-radius:16px;font-size:22px}
  .project-library-shell.expanded .project-library-stage{padding-left:32px;padding-right:32px}
  .project-library-card.expanded{flex-basis:min(86vw,292px)}
  .project-library-shell.expanded .project-library-surface{height:170px;border-radius:24px}
  .project-library-shell.expanded .project-library-title{font-size:20px}
  .project-library-surface.compact{grid-template-columns:72px minmax(0,1fr);padding:10px}
  .project-library-media.compact{width:72px;height:96px;border-radius:14px}
  .project-library-shell.compact .project-library-title{font-size:18px}
}
@media (max-width: 520px){
  .project-library-controls{width:100%}
  .project-library-toggle{flex:1 1 auto}
  .project-library-search{width:100%}
}

/* v1.5.13 — work overlay + project library readability */
.work-overlay-modal{width:min(1320px,96vw);max-height:min(92vh,calc(100vh - 28px));padding:20px 20px 16px;overflow:hidden}
.work-panel-shell{display:grid;gap:16px;min-height:0}
.work-panel-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;min-height:0;align-items:start}
.work-panel-nav{display:grid;gap:10px;align-content:start;max-height:min(72vh,calc(100vh - 180px));overflow:auto;padding-right:2px}
.work-panel-nav-item{display:grid;gap:6px;padding:16px 16px 15px;border:none;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:#fff;text-align:left;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}
.work-panel-nav-item strong{font-size:16px;font-weight:900}
.work-panel-nav-item span{font-size:13px;color:var(--muted);line-height:1.4}
.work-panel-nav-item:hover{transform:translateY(-1px);border-color:rgba(82,182,255,.34);background:rgba(255,255,255,.075)}
.work-panel-nav-item.active{background:linear-gradient(135deg,rgba(82,182,255,.16),rgba(255,255,255,.05));border-color:rgba(82,182,255,.42);box-shadow:0 14px 30px rgba(0,0,0,.18)}
.work-panel-content{min-width:0;max-height:min(72vh,calc(100vh - 180px));overflow:auto;padding-right:4px}
.work-panel-section{display:grid;gap:14px}
.work-panel-section.roles-wrap,.work-panel-section.fixes-wrap,.work-panel-section.tracks-wrap{grid-template-columns:1fr}
.work-panel-section.people-grid{display:grid}
.work-panel-footer{margin-top:2px}
.project-library-status .status-badge{padding:7px 11px;font-size:11px;border-radius:999px;background:rgba(6,16,34,.74);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);box-shadow:0 8px 18px rgba(0,0,0,.18);color:#eef5ff;text-shadow:0 1px 10px rgba(0,0,0,.18)}
.project-library-status .status-badge.planning{background:rgba(12,21,39,.76);color:#e6f0ff;border-color:rgba(255,255,255,.15)}
.project-library-status .status-badge.active{background:rgba(20,59,95,.78);color:#d8f1ff;border-color:rgba(82,182,255,.36)}
.project-library-status .status-badge.finished{background:rgba(18,62,43,.80);color:#d5ffe1;border-color:rgba(112,211,138,.36)}
.project-library-status .status-badge.dropped{background:rgba(82,25,36,.82);color:#ffd2db;border-color:rgba(215,75,98,.38)}
.project-library-card{outline:none}
.project-library-card:focus-visible .project-library-surface{box-shadow:0 28px 48px rgba(0,0,0,.28),0 0 0 2px rgba(110,180,255,.42)}
.project-library-shell.expanded{padding-top:20px;padding-bottom:18px}
.project-library-shell.expanded .project-library-head{margin-bottom:16px}
.project-library-shell.expanded .project-library-head .muted{max-width:900px}
.project-library-shell.expanded .project-library-stage{padding-left:54px;padding-right:54px}
.project-library-shell.expanded .project-library-stage::before,.project-library-shell.expanded .project-library-stage::after{width:96px;opacity:.88}
.project-library-shell.expanded .project-library-card{flex:0 0 clamp(296px,27vw,380px)}
.project-library-shell.expanded .project-library-surface{height:214px;border-radius:26px;box-shadow:0 22px 44px rgba(0,0,0,.24)}
.project-library-shell.expanded .project-library-title{font-size:24px}
.project-library-shell.expanded .project-library-meta{font-size:13px}
.project-library-shell.expanded .project-library-arrow{opacity:.94}
.project-library-shell.compact .project-library-stage::before,.project-library-shell.compact .project-library-stage::after{opacity:.84}
.project-library-shell.compact .project-library-card{flex:0 0 clamp(248px,24vw,312px)}

@media (max-width: 980px){
  .work-overlay-modal{width:min(100vw - 18px,1280px);padding:16px 16px 14px}
  .work-panel-layout{grid-template-columns:1fr}
  .work-panel-nav{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-height:none;overflow:visible;padding-right:0}
  .work-panel-content{max-height:min(68vh,calc(100vh - 230px))}
}
@media (max-width: 640px){
  .work-panel-nav{grid-template-columns:1fr}
  .work-panel-nav-item strong{font-size:15px}
}

/* v1.5.14 — roles focus, tracks layout, click-vs-drag polish */
.work-panel-content,.work-panel-section,.tracks-shell,.track-upload-card,.track-list-box,.track-card,.track-head,.track-head-copy,.tracks-list,.tracks-upload-form,.track-form-field,.track-file-picker,.role-history-item,.role-history-copy{min-width:0}
.work-panel-content{overflow-x:hidden}
.work-panel-section{overflow-x:hidden}

.role-history-item{grid-template-columns:104px minmax(0,1fr) auto;gap:16px}
.role-history-thumb{position:relative;background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));box-shadow:0 16px 28px rgba(0,0,0,.18)}
.role-history-thumb.character-media{width:104px;height:132px;border-radius:22px}
.role-history-thumb.character-media img{object-fit:cover;object-position:center 18%}
.role-history-thumb.project-fallback-media img{object-fit:cover;object-position:center center}
.role-history-copy{align-content:center}
.role-history-copy .summary-inline{margin-bottom:2px}
.role-history-copy strong{font-size:20px;line-height:1.08}
.role-history-item .tag{align-self:center}
.compact-role-history{grid-template-columns:64px minmax(0,1fr)}
.compact-role-history .role-history-thumb.character-media,
.compact-role-history .role-history-thumb.project-fallback-media,
.compact-role-history .role-history-thumb.empty-media{width:64px;height:84px;border-radius:16px}

.tracks-shell{grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start}
.track-upload-card,.track-list-box{overflow:hidden}
.tracks-browse-filters{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:12px;margin-top:14px;margin-bottom:14px}
.tracks-browse-filters .track-project-inline{margin-top:2px}
.tracks-upload-form{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:12px;margin-top:14px}
.track-form-field{display:grid;gap:6px}
.track-form-field.full{grid-column:1/-1}
.track-file-picker{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.track-file-picker .btn{justify-self:start}
.track-project-picker{display:grid;gap:10px}
.track-project-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center}
.track-project-display{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;align-items:center;height:auto;min-height:74px;padding:10px 12px;text-align:left}
.track-project-display strong{display:block;font-size:16px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.track-project-display span{min-width:0}
.track-project-copy{display:grid;gap:4px;min-width:0}
.track-project-copy span:last-child{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-project-thumb,.track-project-option-thumb{width:60px;height:60px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center;flex:0 0 60px}
.track-project-thumb img,.track-project-option-thumb img{width:100%;height:100%;object-fit:cover}
.track-project-option-thumb{width:46px;height:58px;border-radius:14px}
.track-picker-toggle{width:48px;height:48px;border:none;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.track-picker-toggle:hover{transform:translateY(-1px);border-color:rgba(116,170,255,.4);background:rgba(255,255,255,.1)}
.track-picker-toggle svg{width:18px;height:18px}
.track-project-inline{margin-top:0}
.track-project-inline-head{grid-template-columns:minmax(0,1fr) auto}
.track-project-list{max-height:320px}
.upload-name{overflow-wrap:anywhere;word-break:break-word}
.track-upload-actions{margin-top:14px}
.track-card{overflow:hidden}
.track-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.track-head-copy{display:grid;gap:4px}
.track-title{overflow-wrap:anywhere;word-break:break-word}
.track-card-actions{margin-top:12px}
.track-list-box .title,.track-upload-card .title{overflow-wrap:anywhere}

.project-library-viewport{cursor:grab}
.project-library-viewport.dragging{cursor:grabbing;user-select:none}
.project-library-viewport.dragging .project-library-card{pointer-events:none}
.project-library-card{touch-action:pan-y;will-change:transform}
.project-library-card:active .project-library-surface{transform:translateY(-2px) scale(1.01)}
.project-library-edit{cursor:pointer}

@media (max-width: 1180px){
  .tracks-shell{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .tracks-upload-form{grid-template-columns:1fr}
  .tracks-browse-filters{grid-template-columns:1fr}
  .track-project-row{grid-template-columns:1fr 44px}
  .track-project-display{grid-template-columns:54px minmax(0,1fr);min-height:70px}
  .track-project-thumb{width:54px;height:54px}
  .track-file-picker{grid-template-columns:1fr}
  .track-file-picker .btn{width:100%}
  .role-history-item{grid-template-columns:88px minmax(0,1fr)}
  .role-history-thumb.character-media{width:88px;height:116px;border-radius:20px}
}
@media (max-width: 560px){
  .role-history-item{grid-template-columns:1fr;gap:10px}
  .role-history-thumb.character-media,
  .role-history-thumb.project-fallback-media,
  .role-history-thumb.empty-media{width:100%;height:190px}
  .role-history-item .tag{display:none}
  .track-head{grid-template-columns:1fr}
}

@media (max-width: 900px){
  .project-library-shell.expanded .project-library-stage{padding-left:38px;padding-right:38px}
  .project-library-shell.expanded .project-library-stage::before,.project-library-shell.expanded .project-library-stage::after{width:62px}
  .project-library-shell.expanded .project-library-card{flex-basis:min(78vw,318px)}
  .project-library-shell.expanded .project-library-surface{height:184px}
}
@media (max-width: 640px){
  .project-library-shell.expanded .project-library-stage{padding-left:32px;padding-right:32px}
  .project-library-shell.expanded .project-library-card{flex-basis:min(86vw,292px)}
  .project-library-shell.expanded .project-library-surface{height:170px;border-radius:24px}
  .project-library-shell.expanded .project-library-title{font-size:20px}
}


/* v1.5.17 — header popovers visually linked to buttons */
.profile-trigger,.icon-chip-mini{position:relative;overflow:visible}
.profile-trigger.active,.icon-chip-mini.active{
  box-shadow:0 16px 34px rgba(32,78,160,.22), 0 0 0 1px rgba(126,160,255,.18) inset;
}
.profile-trigger-arrow,.icon-chip svg{transition:transform .24s ease, opacity .22s ease}
.profile-trigger.active .profile-trigger-arrow{transform:rotate(180deg)}
.header-floating-layer{background:transparent}
.header-floating-layer .header-popover{
  opacity:0;
  transform:translateY(-12px) scale(.94);
  transform-origin:var(--anchor-offset, calc(100% - 34px)) top;
  transition:opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), filter .24s ease;
  filter:saturate(.96) blur(.2px);
  border:1px solid rgba(126,160,255,.16);
  background:linear-gradient(180deg, rgba(9,23,48,.985), rgba(6,16,34,.975));
  overflow:visible!important;
}
.header-floating-layer .header-popover.header-popover-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:none;
}
.header-floating-layer .header-popover::before{
  content:"";
  position:absolute;
  left:calc(var(--anchor-offset, 32px) - 10px);
  top:-10px;
  width:20px;
  height:20px;
  border-radius:6px;
  transform:rotate(45deg);
  background:linear-gradient(135deg, rgba(18,38,76,.98), rgba(7,17,36,.98));
  border-left:1px solid rgba(126,160,255,.18);
  border-top:1px solid rgba(126,160,255,.18);
  box-shadow:-8px -8px 24px rgba(13,33,68,.18);
}
.header-floating-layer .header-popover::after{
  content:"";
  position:absolute;
  left:calc(var(--anchor-offset, 32px) - calc(var(--anchor-width, 22px) / 2));
  top:calc(-1 * var(--anchor-height, 12px));
  width:var(--anchor-width, 22px);
  height:calc(var(--anchor-height, 12px) + 6px);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(104,165,255,.34), rgba(104,165,255,0));
  opacity:.65;
  filter:blur(8px);
  pointer-events:none;
}
.header-floating-layer .header-popover.profile-popover::before,
.header-floating-layer .header-popover.profile-popover::after{left:calc(var(--anchor-offset, 56px) - 10px)}
.header-floating-layer .header-popover.profile-popover::after{left:calc(var(--anchor-offset, 56px) - calc(var(--anchor-width, 26px) / 2))}
.header-popover-item,.header-search-input-wrap,.notification-card{transform-origin:inherit}
.header-popover-item{backdrop-filter:blur(10px)}
.header-search-input-wrap.compact{
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.075);
  padding:4px;
}
.header-search-input-wrap.compact .header-search-input{
  background:transparent;
  border:none;
  box-shadow:none;
}
.header-search-input-wrap.compact .header-search-input:focus{
  outline:none;
}
.header-search-clear{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.06);
}
.notification-popover,.header-search-popover,.profile-popover{
  backdrop-filter:blur(16px);
}
@media (prefers-reduced-motion: reduce){
  .header-floating-layer .header-popover,
  .profile-trigger-arrow,.icon-chip svg{transition:none!important}
}

.casting-page{display:grid;gap:14px}
.casting-hero,.casting-admin-composer,.casting-toolbar{padding:18px}.casting-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.casting-hero-stats{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.casting-stat{min-width:110px;padding:12px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);display:grid;gap:4px;text-align:left}.casting-stat strong{font-size:24px;line-height:1}.casting-stat span{font-size:12px;color:var(--muted)}
.casting-toolbar{display:grid;gap:12px}.casting-search-wrap{display:flex}.casting-search-input{max-width:340px}.casting-filter-row{display:flex;gap:8px;flex-wrap:wrap}.casting-filter-chip{border:none;border-radius:999px;padding:10px 14px;background:rgba(255,255,255,.06);color:#fff;font-weight:800;cursor:pointer;border:1px solid rgba(255,255,255,.08)}.casting-filter-chip.subtle{background:rgba(255,255,255,.04)}.casting-filter-chip.active{background:linear-gradient(135deg,#52b6ff,#2f8fff);border-color:rgba(110,180,255,.7)}
.casting-admin-composer{display:grid;gap:14px}.casting-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.casting-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.casting-admin-grid .full{grid-column:1/-1}
.casting-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,306px));gap:16px;justify-content:start;align-items:start;align-content:start}.casting-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:start;text-align:left;padding:12px;border-radius:24px;cursor:pointer;min-height:334px;max-width:306px;width:100%}.casting-card.focus-hit{outline:2px solid rgba(104,165,255,.75)}.casting-card-media{border-radius:18px;overflow:hidden;min-height:196px;background:rgba(255,255,255,.05);display:grid;place-items:center}.casting-card-media img,.casting-modal-media img{width:100%;height:100%;object-fit:cover}.casting-card-fallback{width:100%;height:100%;display:grid;place-items:center;font-size:34px;font-weight:900;background:linear-gradient(135deg,#24395a,#131d2c)}.casting-card-body{display:grid;gap:9px;min-width:0;align-content:start}.casting-card-topline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.casting-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05)}.casting-status-badge.open{background:rgba(53,174,96,.16);border-color:rgba(89,217,133,.35)}.casting-status-badge.review{background:rgba(83,140,255,.16);border-color:rgba(104,165,255,.34)}.casting-status-badge.selected{background:rgba(125,88,255,.16);border-color:rgba(151,121,255,.38)}.casting-status-badge.approved{background:rgba(56,196,170,.16);border-color:rgba(90,224,199,.34)}.casting-status-badge.closed,.casting-status-badge.cancelled{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}
.casting-counter-chip,.casting-inline-chip{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.casting-card-title{font-size:18px;font-weight:900;line-height:1.08;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.casting-card-subtitle{font-size:14px;color:rgba(255,255,255,.84);font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.casting-card-meta-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.casting-card-text{color:var(--muted);line-height:1.42;min-height:60px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.casting-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:2px}
.casting-modal{width:min(1120px,96vw)}.casting-modal-shell{display:grid;gap:14px}.casting-modal-hero{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:stretch}.casting-modal-media{border-radius:24px;overflow:hidden;min-height:240px;background:rgba(255,255,255,.05)}.casting-modal-copy{display:grid;gap:10px;align-content:start}.casting-modal-project{font-size:14px;color:rgba(255,255,255,.72);font-weight:800}.casting-modal-character{font-size:32px;font-weight:900;line-height:1.04}.casting-modal-note{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);line-height:1.5;color:#f3f7ff}.casting-materials-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:2px}.casting-materials-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:linear-gradient(135deg,#52b6ff,#2f8fff);border:1px solid rgba(110,180,255,.7);box-shadow:0 12px 24px rgba(34,103,255,.18)}.casting-materials-btn:hover{filter:brightness(1.06)}
.casting-admin-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.casting-submission-list{display:grid;gap:12px}.casting-submission-card{display:grid;gap:12px;padding:14px;border-radius:22px}.casting-submission-card.selected{outline:2px solid rgba(125,88,255,.45)}.casting-submission-card.approved{outline:2px solid rgba(90,224,199,.35)}.casting-submission-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.casting-submission-profile{display:flex;gap:12px;align-items:center}.casting-submission-avatar{width:54px;height:54px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.05);display:grid;place-items:center}.casting-submission-avatar img{width:100%;height:100%;object-fit:cover}.casting-submission-name{font-size:18px;font-weight:900}.casting-submission-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.casting-submission-comment{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);line-height:1.5;color:var(--text)}.casting-submission-actions{gap:8px}.casting-media-player{width:100%;max-width:100%}.casting-media-player.compact{margin-top:4px}
.casting-dubber-panel{display:grid;gap:14px;padding:16px}.casting-dubber-head{display:grid;gap:6px}.casting-existing-demo{display:grid;gap:10px}.casting-dubber-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.casting-dubber-grid .full{grid-column:1/-1}.main-nav-pill.casting-pill{background:rgba(255,255,255,.03)}
@media (max-width: 1280px){.casting-grid{grid-template-columns:repeat(auto-fill,minmax(294px,294px))}.casting-card{max-width:294px;min-height:324px}}
@media (max-width: 980px){.casting-grid{grid-template-columns:repeat(auto-fill,minmax(280px,280px))}.casting-card{max-width:280px;min-height:318px;grid-template-columns:96px minmax(0,1fr)}.casting-card-media{min-height:184px}.casting-modal-hero,.casting-admin-grid,.casting-dubber-grid{grid-template-columns:1fr}.casting-hero{display:grid}.casting-hero-stats{justify-content:flex-start}.casting-submission-head{display:grid}.casting-submission-tags{justify-content:flex-start}}


.hidden{display:none !important}
.casting-card,.casting-modal-shell,.casting-dubber-panel,.casting-submission-card{color:var(--text)}
.casting-status-badge{color:#eef6ff}
.casting-status-badge.open{color:#9df0ba}
.casting-status-badge.review{color:#aecdff}
.casting-status-badge.selected{color:#d0bdff}
.casting-status-badge.approved{color:#9ff2de}
.casting-status-badge.closed,.casting-status-badge.cancelled{color:rgba(255,255,255,.82)}
.casting-card-text{color:rgba(255,255,255,.82)}
.casting-card .muted,.casting-submission-card .muted,.casting-dubber-head .muted{color:rgba(255,255,255,.68)}
.casting-file-input{padding:10px 12px;height:auto;min-height:48px;color:#edf4ff;line-height:1.35}
.casting-file-input::file-selector-button{margin-right:12px;border:none;border-radius:12px;padding:10px 14px;background:rgba(255,255,255,.12);color:#fff;font-weight:800;cursor:pointer;transition:filter .2s ease,transform .2s ease}
.casting-file-input::file-selector-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.casting-submit-bar{justify-content:flex-start;position:sticky;bottom:0;padding-top:8px;background:linear-gradient(180deg, rgba(4,10,23,0), rgba(4,10,23,.92) 45%, rgba(4,10,23,.98))}
.casting-submit-btn{min-width:220px;box-shadow:0 12px 28px rgba(107,69,255,.28)}
.casting-submit-btn:disabled{opacity:.72;cursor:progress}
.casting-preview-box{display:grid;gap:10px;padding:14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.casting-media-shell{display:grid;gap:10px;padding:12px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.casting-media-shell.compact{padding:10px}
.casting-media-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.casting-media-head strong{font-size:14px;color:#f5f8ff}
.casting-media-head span{font-size:12px;color:rgba(255,255,255,.68)}
.casting-media-player{width:100%;max-width:100%;border-radius:16px;background:rgba(2,8,22,.82);border:1px solid rgba(255,255,255,.08);overflow:hidden}
video.casting-media-player{min-height:260px;max-height:420px;object-fit:contain}
audio.casting-media-player{height:46px}
.casting-media-link{justify-self:start;color:#9fc3ff;text-decoration:none;font-size:13px;font-weight:700}
.casting-media-link:hover{text-decoration:underline}
.casting-submission-card .casting-media-shell{background:rgba(255,255,255,.03)}
@media (max-width: 980px){
  video.casting-media-player{min-height:220px}
  .casting-submit-btn{width:100%}
}

.casting-card-title,.casting-card-subtitle{word-break:break-word}


.track-project-row{align-items:stretch}
.track-project-display{border-radius:20px}
.track-picker-toggle.is-open svg{transform:rotate(180deg)}
.track-picker-toggle svg{transition:transform .16s ease}
.track-project-inline{padding:10px;border-radius:18px;background:rgba(255,255,255,.035)}
.track-project-list{max-height:300px;padding-right:4px}
.track-project-list .picker-item.track-project-item{align-items:center;padding:12px 12px;border-radius:18px;min-height:88px}
.track-project-list .picker-item.track-project-item .picker-main{min-width:0;align-items:center;gap:12px;flex:1 1 auto}
.track-project-list .picker-item.track-project-item .picker-copy{min-width:0;display:grid;gap:4px}
.track-project-list .picker-item.track-project-item .picker-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.15}
.track-project-list .picker-item.track-project-item .picker-sub{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:block}
.track-project-list .track-project-action{align-self:center;display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-weight:900;color:#fff;flex:0 0 auto;white-space:nowrap}
.track-project-list .track-project-action.selected{background:rgba(82,182,255,.16);border-color:rgba(82,182,255,.32);color:#b6dcff}
.track-project-list .track-project-option-thumb{width:54px;height:68px;border-radius:16px;flex:0 0 54px}
@media (max-width: 760px){
  .track-project-list .picker-item.track-project-item{padding:10px;min-height:82px}
  .track-project-list .track-project-action{min-width:78px;padding:9px 12px;font-size:12px}
}

.track-file-label{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}
.track-hidden-file{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}

.header-brand{display:grid;gap:8px}
.statham-quote-line{max-width:min(820px,100%);font-size:14px;line-height:1.45;color:rgba(255,255,255,.72);min-height:2.8em;text-wrap:balance;opacity:.96}
.statham-quote-line::before{content:'◦ ';color:rgba(127,165,255,.9)}
@media (max-width:760px){.statham-quote-line{font-size:13px;min-height:3.2em}}

.people-toolbar{display:grid;gap:12px;margin-bottom:12px}
.people-toolbar-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.people-search-input{max-width:420px}
.people-role-filters{gap:8px;flex-wrap:wrap}
.track-card-actions{display:flex;gap:8px;flex-wrap:wrap}

.profile-list-card{cursor:pointer}
.fix-card-actions{margin-top:10px}
.fix-card-actions .btn{min-width:0}

/* v1.5.26.24 — viewer surface + player fields */
.surface-switch{margin-right:4px}
.viewer-surface{display:grid;gap:18px}
.viewer-hero,.viewer-title-hero,.viewer-watch-panel,.viewer-section{position:relative;overflow:hidden}
.viewer-hero,.viewer-title-hero{min-height:320px;padding:0}
.viewer-hero-backdrop,.viewer-title-backdrop{position:absolute;inset:0;background:linear-gradient(90deg, rgba(3,8,18,.92), rgba(3,8,18,.78))}
.viewer-hero-content,.viewer-title-content{position:relative;z-index:1;display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:end;padding:24px}
.viewer-hero-poster,.viewer-title-poster{width:220px;height:300px;border-radius:26px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.viewer-hero-poster img,.viewer-title-poster img,.viewer-project-thumb img,.viewer-cast-character img{width:100%;height:100%;object-fit:cover}
.viewer-project-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:900;background:linear-gradient(135deg,#24395a,#131d2c);color:#fff}
.viewer-project-fallback.big{font-size:42px}
.viewer-kicker{font-size:12px;color:rgba(255,255,255,.72);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.viewer-hero-title{font-size:42px;font-weight:900;line-height:1.03;margin-bottom:10px}
.viewer-hero-meta{color:rgba(255,255,255,.76);font-size:15px;margin-bottom:10px}
.viewer-hero-desc{max-width:760px;color:rgba(255,255,255,.88);line-height:1.6}
.viewer-section{padding:18px}
.viewer-section-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.viewer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.viewer-project-card{border:none;padding:12px;border-radius:22px;display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;text-align:left;cursor:pointer;background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.08);color:#fff}
.viewer-project-card:hover{transform:translateY(-1px);border-color:rgba(82,182,255,.34)}
.viewer-project-thumb{width:74px;height:104px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06)}
.viewer-project-copy{min-width:0;display:grid;align-content:center;gap:6px}
.viewer-project-title{font-size:20px;font-weight:900;line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.viewer-project-meta{font-size:13px;color:rgba(255,255,255,.74)}
.viewer-back-link{border:none;background:none;color:#9fc3ff;cursor:pointer;font:inherit;padding:0;margin-bottom:8px;text-align:left}
.viewer-cast-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.viewer-cast-card{padding:14px;display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.viewer-cast-character{width:84px;height:118px;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.06)}
.viewer-cast-copy{display:grid;gap:8px;min-width:0}
.viewer-cast-name{font-size:22px;font-weight:900;line-height:1.08}
.viewer-cast-meta,.viewer-cast-dubber{color:rgba(255,255,255,.78);font-size:14px}
.viewer-watch-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}
.viewer-player-shell{position:relative;border-radius:26px;overflow:hidden;background:#030a17;border:1px solid rgba(255,255,255,.08);aspect-ratio:16/9}
.viewer-iframe-player{width:100%;height:100%;border:0;background:#000}
.viewer-episode-row{display:flex;gap:8px;overflow:auto;padding:14px 0 2px}
.viewer-player-note{margin-top:14px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
@media (max-width: 900px){
  .viewer-hero-content,.viewer-title-content{grid-template-columns:1fr;align-items:start}
  .viewer-hero-poster,.viewer-title-poster{width:180px;height:246px}
  .viewer-hero-title{font-size:32px}
  .viewer-watch-head{flex-direction:column}
}

/* v1.5.26.24 viewer rail + tiny surface switch */
.surface-switch-icons{padding:4px;gap:4px}
.mode-icon-chip{width:40px;height:34px;padding:0;display:inline-grid;place-items:center;border-radius:14px}
.mode-icon-chip svg{width:18px;height:18px}
.viewer-rail-shell{padding:18px 18px 22px;margin-top:18px}
.viewer-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.viewer-rail-row{display:flex;gap:18px;overflow:auto;padding:4px 2px 8px;scroll-snap-type:x proximity}
.viewer-rail-row::-webkit-scrollbar{height:8px}
.viewer-rail-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.viewer-rail-card{position:relative;flex:0 0 280px;height:390px;border:none;border-radius:30px;overflow:hidden;background:rgba(255,255,255,.05);cursor:pointer;box-shadow:0 22px 48px rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.08);padding:0;scroll-snap-align:start;transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease}
.viewer-rail-card:hover{transform:translateY(-3px);border-color:rgba(82,182,255,.28);box-shadow:0 28px 58px rgba(0,0,0,.42)}
.viewer-rail-media,.viewer-rail-media img{width:100%;height:100%;object-fit:cover;display:block}
.viewer-rail-hover{position:absolute;left:12px;right:12px;bottom:12px;border-radius:22px;padding:14px;background:linear-gradient(180deg, rgba(8,16,31,.18), rgba(8,16,31,.92));border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(12px);opacity:0;transform:translateY(10px);transition:opacity .18s ease, transform .18s ease;pointer-events:none}
.viewer-rail-card:hover .viewer-rail-hover{opacity:1;transform:translateY(0)}
.viewer-card-hover-title{font-size:20px;font-weight:900;line-height:1.06;margin-bottom:6px}
.viewer-card-hover-meta{font-size:13px;color:rgba(255,255,255,.78);margin-bottom:8px}
.viewer-card-hover-desc{font-size:13px;line-height:1.42;color:#eef3ff;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.viewer-card-hover-actions{margin-top:10px}.fake-btn{display:inline-flex}
@media (max-width: 980px){.viewer-rail-card{flex-basis:220px;height:320px}.mode-icon-chip{width:38px;height:32px}}

/* v1.5.26.25 — user surface polish */
.surface-switch-icons{padding:3px;gap:3px;background:rgba(255,255,255,.04)}
.mode-icon-chip{width:34px;height:30px;padding:0;display:inline-grid;place-items:center;border-radius:12px}
.mode-icon-chip svg{width:15px;height:15px}
.viewer-catalog-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;margin-top:4px}
.viewer-catalog-trigger{display:inline-flex;align-items:center;gap:8px;padding:0 14px;min-width:0;height:44px;border-radius:16px}
.viewer-catalog-trigger span{font-weight:900;color:#dfe8ff}
.viewer-catalog-modal{display:grid;gap:16px}
.viewer-catalog-search-row{display:grid;gap:10px}
.viewer-catalog-group{display:grid;gap:10px}
.viewer-filter-row{display:flex;flex-wrap:wrap;gap:10px}
.viewer-filter-chip{border:none;border-radius:999px;padding:10px 14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:800;cursor:pointer}
.viewer-filter-chip.active{background:linear-gradient(135deg,#58b8ff,#765bff);border-color:rgba(134,169,255,.65)}
.viewer-rail-shell{padding:18px 18px 20px;margin-top:10px}
.viewer-rail-stage{position:relative}
.viewer-rail-row{display:flex;gap:18px;overflow:auto;padding:4px 2px 10px;scroll-snap-type:x proximity}
.viewer-rail-card{position:relative;flex:0 0 318px;height:430px;border:none;border-radius:30px;overflow:hidden;background:rgba(255,255,255,.04);cursor:pointer;box-shadow:0 22px 50px rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.08);padding:0;scroll-snap-align:start;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.viewer-rail-card:hover{transform:translateY(-4px);border-color:rgba(82,182,255,.32);box-shadow:0 30px 62px rgba(0,0,0,.46)}
.viewer-rail-topline{position:absolute;left:14px;top:14px;right:14px;display:flex;justify-content:flex-start;z-index:2}
.viewer-rail-glow{position:absolute;inset:0;background:linear-gradient(180deg, rgba(8,14,28,.06), rgba(8,14,28,.12) 54%, rgba(8,14,28,.55));pointer-events:none}
.viewer-rail-hover{position:absolute;left:14px;right:14px;bottom:14px;border-radius:22px;padding:16px;background:linear-gradient(180deg, rgba(8,16,31,.2), rgba(8,16,31,.94));border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(14px);opacity:0;transform:translateY(12px);transition:opacity .18s ease,transform .18s ease;pointer-events:none;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.viewer-rail-card:hover .viewer-rail-hover{opacity:1;transform:translateY(0)}
.viewer-card-hover-title{font-size:22px;font-weight:900;line-height:1.04;margin-bottom:8px;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35)}
.viewer-card-hover-meta{font-size:13px;color:rgba(255,255,255,.82);margin-bottom:10px}
.viewer-card-hover-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.viewer-card-hover-desc{font-size:13px;line-height:1.48;color:#eef3ff;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.viewer-card-hover-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
.viewer-open-chip,.viewer-rating-chip{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);font-weight:800;color:#fff}
.viewer-rating-chip{background:rgba(122,92,255,.18);border-color:rgba(122,92,255,.38)}
.viewer-rail-nav{display:flex;gap:10px}
.viewer-rail-arrow{width:44px;height:58px;border-radius:18px;font-size:24px}
.viewer-title-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 80% 18%, rgba(103,184,255,.16), transparent 28%),linear-gradient(135deg, rgba(6,14,30,.98), rgba(6,20,42,.95) 48%, rgba(8,14,28,.98));}
.viewer-title-layout{grid-template-columns:220px minmax(0,1fr) 280px;align-items:start}
.viewer-title-side{padding:18px;border-radius:24px;background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);display:grid;gap:14px;min-height:100%}
.viewer-title-side-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.viewer-title-stat{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);display:grid;gap:4px}
.viewer-title-stat span{font-size:11px;color:rgba(255,255,255,.62);text-transform:uppercase;letter-spacing:.05em}
.viewer-title-stat strong{font-size:18px;line-height:1.1}
.viewer-title-tags{margin:0}
.viewer-title-summary{line-height:1.55}
.viewer-cast-grid.compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.viewer-character-chip{border:none;border-radius:24px;padding:14px;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.08);display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;text-align:left;cursor:pointer;color:#fff;align-items:center;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.viewer-character-chip:hover{transform:translateY(-2px);border-color:rgba(82,182,255,.3);background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04))}
.viewer-character-chip.disabled{opacity:.72;cursor:default}
.viewer-character-chip-avatar{width:74px;height:74px;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.06)}
.viewer-character-chip-avatar img{width:100%;height:100%;object-fit:cover}
.viewer-character-chip-copy{min-width:0;display:grid;gap:6px}
.viewer-character-chip-name{font-size:18px;font-weight:900;line-height:1.08;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.viewer-character-chip-sub{font-size:13px;line-height:1.35;color:rgba(255,255,255,.76)}
.viewer-cast-profile-modal{padding:18px;display:grid;gap:14px}
.viewer-cast-profile-head{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center}
.viewer-cast-profile-avatar{width:92px;height:92px;border-radius:24px;overflow:hidden;background:rgba(255,255,255,.06)}
.viewer-cast-profile-avatar img{width:100%;height:100%;object-fit:cover}
@media (max-width: 1100px){
  .viewer-title-layout{grid-template-columns:220px minmax(0,1fr)}
  .viewer-title-side{grid-column:1/-1}
}
@media (max-width: 900px){
  .viewer-catalog-bar{padding:14px}
  .viewer-rail-card{flex-basis:260px;height:360px}
  .viewer-rail-arrow{width:38px;height:50px;border-radius:16px;font-size:22px}
  .viewer-title-layout{grid-template-columns:1fr}
}

/* v1.5.26.27 — viewer polish: safe rails, floating search, title page */
html, body, #app { max-width: 100%; overflow-x: hidden; }
.header-brand.brand-home-button{
  border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer;border-radius:22px;
  transition:transform .18s ease, filter .18s ease;
}
.header-brand.brand-home-button:hover{transform:translateY(-1px);filter:drop-shadow(0 8px 18px rgba(82,182,255,.16))}
.viewer-surface{width:100%;max-width:100%;overflow:hidden}
.viewer-rail-shell{
  overflow:hidden;
  background:linear-gradient(180deg, rgba(11,26,52,.72), rgba(7,16,34,.62));
  border-color:rgba(111,171,255,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.viewer-rail-stage{position:relative;overflow:hidden;max-width:100%;border-radius:28px}
.viewer-rail-stage:before,.viewer-rail-stage:after{content:"";position:absolute;top:0;bottom:10px;width:64px;z-index:5;pointer-events:none}
.viewer-rail-stage:before{left:0;background:linear-gradient(90deg, rgba(5,13,29,.98), transparent)}
.viewer-rail-stage:after{right:0;background:linear-gradient(270deg, rgba(5,13,29,.98), transparent)}
.viewer-rail-row{
  width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;
  padding:8px 4px 14px;scrollbar-width:thin;scroll-behavior:smooth;
}
.viewer-rail-row::-webkit-scrollbar{height:8px}
.viewer-rail-row::-webkit-scrollbar-thumb{background:linear-gradient(90deg, rgba(79,169,255,.48), rgba(125,92,255,.48));border-radius:999px}
.viewer-rail-card{
  flex:0 0 clamp(230px, 20vw, 330px);height:clamp(330px, 27vw, 430px);
  background:linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.viewer-rail-card:nth-child(4n+1){box-shadow:0 22px 50px rgba(57,154,255,.12),0 22px 50px rgba(0,0,0,.35)}
.viewer-rail-card:nth-child(4n+2){box-shadow:0 22px 50px rgba(138,92,255,.13),0 22px 50px rgba(0,0,0,.35)}
.viewer-rail-card:nth-child(4n+3){box-shadow:0 22px 50px rgba(255,177,73,.10),0 22px 50px rgba(0,0,0,.35)}
.viewer-rail-card:nth-child(4n+4){box-shadow:0 22px 50px rgba(75,224,176,.10),0 22px 50px rgba(0,0,0,.35)}
.viewer-rail-card:hover{transform:translateY(-6px) scale(1.01)}
.viewer-rail-glow{background:radial-gradient(circle at 20% 0%, rgba(82,182,255,.22), transparent 30%),linear-gradient(180deg, rgba(8,14,28,.03), rgba(8,14,28,.08) 52%, rgba(8,14,28,.62))}
.viewer-rail-hover{
  background:linear-gradient(180deg, rgba(12,24,48,.62), rgba(7,14,30,.94));
  border-color:rgba(124,177,255,.18);box-shadow:0 18px 38px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05)
}
.viewer-rail-nav{align-items:center}
.viewer-rail-arrow{
  background:linear-gradient(135deg, rgba(59,153,255,.22), rgba(125,92,255,.18));
  border:1px solid rgba(119,173,255,.18);color:#eff6ff;
}
.viewer-rail-arrow:not(.disabled):hover{background:linear-gradient(135deg, rgba(59,153,255,.38), rgba(125,92,255,.32));transform:translateY(-1px)}
.viewer-rail-arrow.disabled{opacity:.36;filter:saturate(.5)}
.viewer-floating-search-wrap{display:flex;justify-content:center;margin:8px auto 22px;padding:0 16px}
.viewer-floating-search{
  width:min(760px, 100%);border:1px solid rgba(125,177,255,.18);border-radius:999px;
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px;
  padding:10px 14px 10px 10px;background:linear-gradient(135deg, rgba(16,34,66,.86), rgba(11,21,43,.76));
  color:#eef5ff;box-shadow:0 18px 44px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.03) inset;cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.viewer-floating-search:hover{transform:translateY(-2px);border-color:rgba(82,182,255,.38);box-shadow:0 24px 60px rgba(0,0,0,.36),0 0 42px rgba(69,154,255,.09)}
.viewer-floating-search-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#43b8ff,#785cff);box-shadow:0 10px 24px rgba(67,184,255,.24)}
.viewer-floating-search-icon svg{width:18px;height:18px}
.viewer-floating-search-text{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800;color:#dfeaff}
.viewer-floating-search-count{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.07);font-weight:900;color:#fff}
.viewer-search-modal{min-width:min(720px, calc(100vw - 42px));}
.viewer-search-hero{display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;padding:4px 2px 2px}
.viewer-search-orb{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:radial-gradient(circle at 25% 20%, #7fe4ff, #4aa9ff 45%, #765bff);box-shadow:0 18px 38px rgba(69,154,255,.26)}
.viewer-search-orb svg{width:22px;height:22px}
.viewer-catalog-search-big .input{height:58px;border-radius:22px;font-size:16px;background:rgba(255,255,255,.065)}
.viewer-filter-row-colored .viewer-filter-chip.type-anime{background:linear-gradient(135deg, rgba(69,169,255,.18), rgba(69,169,255,.08))}
.viewer-filter-row-colored .viewer-filter-chip.type-film{background:linear-gradient(135deg, rgba(255,177,73,.18), rgba(255,177,73,.08))}
.viewer-filter-row-colored .viewer-filter-chip.type-series{background:linear-gradient(135deg, rgba(89,226,177,.18), rgba(89,226,177,.08))}
.viewer-search-results-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:2px}
.viewer-search-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;max-height:320px;overflow:auto;padding-right:4px}
.viewer-search-result-card{border:none;border-radius:20px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);color:#fff;display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:10px;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.viewer-search-result-card:hover{transform:translateY(-2px);border-color:rgba(82,182,255,.34);background:rgba(255,255,255,.075)}
.viewer-search-result-poster{width:58px;height:76px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.07)}
.viewer-search-result-poster img{width:100%;height:100%;object-fit:cover}
.viewer-search-result-copy{min-width:0;display:grid;gap:5px}
.viewer-search-result-copy strong{line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.viewer-search-result-copy span{font-size:12px;color:rgba(255,255,255,.72)}
.viewer-title-hero{background:linear-gradient(180deg, rgba(10,24,48,.78), rgba(6,15,32,.68));}
.viewer-title-backdrop{background:radial-gradient(circle at 18% 0%, rgba(82,182,255,.20), transparent 30%),radial-gradient(circle at 82% 8%, rgba(122,92,255,.18), transparent 32%),linear-gradient(135deg, rgba(6,14,30,.98), rgba(6,20,42,.94) 55%, rgba(8,14,28,.98))!important}
.viewer-title-layout{grid-template-columns:220px minmax(0,1fr)!important;align-items:center;min-height:360px}
.viewer-title-copy{align-self:center;max-width:920px}
.viewer-title-inline-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.viewer-title-stat{background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035));border-color:rgba(125,177,255,.12)}
.viewer-title-stat:nth-child(1){box-shadow:0 0 0 1px rgba(255,207,79,.08) inset}
.viewer-title-stat:nth-child(2){box-shadow:0 0 0 1px rgba(82,182,255,.08) inset}
.viewer-title-stat:nth-child(3){box-shadow:0 0 0 1px rgba(89,226,177,.08) inset}
.viewer-title-stat:nth-child(4){box-shadow:0 0 0 1px rgba(122,92,255,.08) inset}
.viewer-title-side{display:none!important}
.viewer-cast-grid.compact{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.viewer-character-chip{grid-template-columns:1fr;padding:10px;border-radius:22px;text-align:left;align-items:stretch;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025))}
.viewer-character-chip-avatar{width:100%;height:180px;border-radius:18px}
.viewer-character-chip-name{font-size:15px;margin-top:2px}
.viewer-character-chip-sub{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:900px){
  .viewer-title-inline-stats{grid-template-columns:1fr 1fr}
  .viewer-title-layout{grid-template-columns:1fr!important;min-height:0}
  .viewer-rail-card{flex-basis:240px;height:340px}
  .viewer-floating-search{grid-template-columns:42px minmax(0,1fr);border-radius:24px}.viewer-floating-search-count{display:none}
}


/* v1.5.26.27 — viewer rails/search/cast final polish */
.head.header-topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.top-home-button{justify-self:center;border:1px solid rgba(121,177,255,.16);background:linear-gradient(135deg,rgba(58,155,255,.18),rgba(125,92,255,.14));color:#eaf3ff;border-radius:999px;padding:10px 16px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 12px 30px rgba(0,0,0,.18);transition:transform .16s ease,border-color .16s ease,background .16s ease}
.top-home-button span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08)}
.top-home-button strong{font-size:13px;letter-spacing:.01em}
.top-home-button:hover{transform:translateY(-1px);border-color:rgba(82,182,255,.42);background:linear-gradient(135deg,rgba(58,155,255,.28),rgba(125,92,255,.22))}
.viewer-home-content{display:grid;gap:18px;min-width:0;max-width:100%;overflow:hidden}
.viewer-rail-shell{max-width:100%;min-width:0;overflow:hidden;padding:18px 18px 26px}
.viewer-section-head{position:relative;z-index:7}
.viewer-rail-stage{overflow:hidden;border-radius:30px;background:linear-gradient(90deg,rgba(5,13,29,.72),rgba(8,20,43,.42),rgba(5,13,29,.72));box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
.viewer-rail-row{display:flex!important;flex-wrap:nowrap!important;gap:18px;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 12px 20px;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;cursor:grab;overscroll-behavior-x:contain}
.viewer-rail-row:active{cursor:grabbing}
.viewer-rail-row::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.viewer-rail-card{flex:0 0 300px!important;width:300px!important;max-width:300px!important;height:415px!important;scroll-snap-align:start}
.viewer-rail-nav{z-index:8}
.viewer-rail-arrow{box-shadow:0 14px 36px rgba(0,0,0,.26)}
.viewer-rail-stage:before,.viewer-rail-stage:after{bottom:0;width:82px}
.viewer-floating-search-wrap{margin:12px auto 24px}
.viewer-catalog-bar{display:grid;justify-items:center;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.viewer-catalog-bar-copy{text-align:center;order:2}.viewer-catalog-bar-copy .small-label{display:none}
.viewer-catalog-trigger{order:1;width:min(740px,calc(100vw - 52px));height:64px;border-radius:999px;justify-content:center;background:linear-gradient(135deg,rgba(69,169,255,.20),rgba(125,92,255,.18));border:1px solid rgba(118,178,255,.22);box-shadow:0 18px 46px rgba(0,0,0,.28),0 0 36px rgba(69,169,255,.08);font-weight:900;font-size:16px}
.viewer-catalog-trigger:before{content:'Найти тайтл';margin-left:8px;order:2}.viewer-catalog-trigger svg{width:20px;height:20px;order:1}.viewer-catalog-trigger span{order:3}
.viewer-search-modal-live .viewer-catalog-actions{display:none!important}
.viewer-search-results{max-height:360px}
.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:220px minmax(0,1fr) 340px!important;gap:22px;align-items:start;min-height:0}
.viewer-title-copy{max-width:780px}.viewer-hero-desc{max-width:760px;line-height:1.65}
.viewer-title-cast-side{padding:16px;border-radius:26px;align-self:stretch;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border:1px solid rgba(125,177,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;max-height:440px;min-width:0}
.viewer-title-cast-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.viewer-title-cast-list{display:grid;gap:8px;overflow:auto;padding-right:4px;min-height:0;scrollbar-width:thin}
.viewer-title-cast-chip{border:0;color:#f1f6ff;text-align:left;border-radius:18px;padding:8px;display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease}
.viewer-title-cast-chip:hover{transform:translateY(-1px);border-color:rgba(82,182,255,.26);background:rgba(255,255,255,.07)}
.viewer-title-cast-chip.disabled{opacity:.6;cursor:default}.viewer-title-cast-chip.disabled:hover{transform:none}
.viewer-title-cast-avatar{width:54px;height:68px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.07);display:grid;place-items:center;font-weight:900;color:#cfe4ff}
.viewer-title-cast-avatar img{width:100%;height:100%;object-fit:cover}
.viewer-title-cast-copy{min-width:0;display:grid;gap:4px}.viewer-title-cast-copy strong{font-size:14px;line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.viewer-title-cast-copy em{font-style:normal;font-size:12px;color:rgba(255,255,255,.68);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewer-cast-section{display:none!important}
@media(max-width:1100px){.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:180px minmax(0,1fr)!important}.viewer-title-cast-side{grid-column:1/-1;max-height:none}.viewer-title-cast-list{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));overflow:visible}.viewer-rail-card{flex-basis:260px!important;width:260px!important;max-width:260px!important;height:360px!important}.head.header-topbar{grid-template-columns:1fr auto}.top-home-button{display:none}}
@media(max-width:680px){.viewer-rail-card{flex-basis:220px!important;width:220px!important;max-width:220px!important;height:315px!important}.viewer-catalog-trigger{height:56px}.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:1fr!important}.viewer-title-poster{width:170px;height:232px}.viewer-title-inline-stats{grid-template-columns:1fr 1fr}}


/* v1.5.26.28 — viewer layout polish */
.head.header-topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start}
.top-home-button{padding:12px 20px;border-color:rgba(121,177,255,.22);box-shadow:0 16px 34px rgba(0,0,0,.22);margin-top:6px}
.top-home-button strong{font-size:14px}
.top-home-button span{width:26px;height:26px}
.viewer-catalog-bar.viewer-catalog-bar-centered{display:grid;justify-items:center;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 0 2px!important;margin:6px auto 18px!important}
.viewer-catalog-trigger.viewer-catalog-trigger-centered{width:min(640px,calc(100vw - 80px));height:58px;border-radius:999px;justify-content:center;padding:0 24px;background:linear-gradient(135deg,rgba(69,169,255,.18),rgba(125,92,255,.14));border:1px solid rgba(118,178,255,.22);box-shadow:0 14px 34px rgba(0,0,0,.22),0 0 24px rgba(69,169,255,.06);font-weight:900;font-size:15px;margin:0 auto}
.viewer-catalog-trigger.viewer-catalog-trigger-centered:before{content:none}
.viewer-catalog-trigger.viewer-catalog-trigger-centered span{font-size:18px;letter-spacing:.01em}
.viewer-catalog-helper{font-size:13px;color:rgba(255,255,255,.64);text-align:center}
.viewer-home-content{gap:22px}
.viewer-rail-shell{padding:18px 18px 22px}
.viewer-rail-stage{overflow:hidden;border-radius:30px;background:linear-gradient(90deg,rgba(5,13,29,.72),rgba(8,20,43,.42),rgba(5,13,29,.72));box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
.viewer-rail-row{display:flex!important;flex-wrap:nowrap!important;gap:18px;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 12px 8px;scroll-snap-type:x mandatory;scrollbar-width:none!important;-ms-overflow-style:none!important;cursor:grab;overscroll-behavior-x:contain}
.viewer-rail-row.dragging{cursor:grabbing}
.viewer-rail-row::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;background:transparent!important}
.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:220px minmax(0,1fr) 320px!important;gap:20px}
.viewer-title-cast-side{padding:14px;border-radius:24px;background:linear-gradient(180deg,rgba(17,29,58,.94),rgba(10,18,37,.96));border:1px solid rgba(129,173,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);max-height:430px}
.viewer-title-cast-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.viewer-title-cast-nav{display:flex;gap:6px}
.viewer-mini-arrow{width:32px;height:32px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;font-weight:900}
.viewer-mini-arrow:hover{background:rgba(82,182,255,.14);border-color:rgba(82,182,255,.28)}
.viewer-mini-arrow.disabled{opacity:.35;cursor:default}
.viewer-title-cast-list{display:grid;gap:8px;overflow:auto;padding-right:2px;min-height:0;scrollbar-width:none!important;-ms-overflow-style:none!important;cursor:grab}
.viewer-title-cast-list.dragging{cursor:grabbing}
.viewer-title-cast-list::-webkit-scrollbar{display:none!important;width:0!important}
.viewer-title-cast-chip{padding:8px 10px;grid-template-columns:48px minmax(0,1fr);background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.09)}
.viewer-title-cast-avatar{width:48px;height:60px;border-radius:12px;background:rgba(255,255,255,.09)}
.viewer-title-cast-copy strong{font-size:13px}.viewer-title-cast-copy em{font-size:11px}
.viewer-player-shell{aspect-ratio:2.05/1;max-height:min(58vh,680px);min-height:300px}
.viewer-player-empty{display:grid;place-items:center;min-height:300px;text-align:center}
.viewer-watch-bottom-row{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;margin-top:14px}
.viewer-watch-side-stats{padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);display:grid;grid-template-columns:1fr 1fr;gap:10px}
.viewer-watch-mini{padding:12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);display:grid;gap:6px}
.viewer-watch-mini span{font-size:11px;color:rgba(255,255,255,.62);text-transform:uppercase;letter-spacing:.06em}.viewer-watch-mini strong{font-size:16px;line-height:1.2}
@media(max-width:1100px){.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:200px minmax(0,1fr)!important}.viewer-title-cast-side{grid-column:1/-1;max-height:none}.viewer-watch-bottom-row{grid-template-columns:1fr}.top-home-button{margin-top:0}}
@media(max-width:700px){.viewer-catalog-trigger.viewer-catalog-trigger-centered{width:min(92vw,560px);height:54px}.viewer-catalog-trigger.viewer-catalog-trigger-centered span{font-size:16px}.viewer-player-shell{aspect-ratio:16/9;min-height:220px}.viewer-watch-side-stats{grid-template-columns:1fr 1fr}.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:1fr!important}}


/* v1.5.26.29 — viewer drag, centered watch, cast fill, genre polish */
.viewer-surface,.viewer-home-content,.viewer-rail-shell,.viewer-rail-stage{max-width:100%;min-width:0;overflow-x:hidden}
.viewer-rail-stage{position:relative}
.viewer-rail-row{user-select:none;-webkit-user-select:none;touch-action:pan-y;scrollbar-width:none!important;-ms-overflow-style:none!important}
.viewer-rail-row img,.viewer-rail-card,.viewer-title-cast-list img{-webkit-user-drag:none;user-drag:none}
.viewer-rail-card{position:relative;overflow:hidden}
.viewer-catalog-bar.viewer-catalog-bar-centered{margin:10px auto 20px!important;justify-items:center}
.viewer-catalog-trigger.viewer-catalog-trigger-centered{width:min(560px,calc(100vw - 96px));height:56px;margin:0 auto;border-radius:28px;justify-self:center}
.viewer-catalog-helper{max-width:560px;margin:0 auto}
.top-home-button{padding:14px 24px;min-height:52px}
.top-home-button strong{font-size:15px}
.viewer-title-hero{min-height:560px}
.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:220px minmax(0,1fr) 330px!important;align-items:stretch!important;gap:22px}
.viewer-title-copy{display:flex;flex-direction:column;justify-content:flex-start}
.viewer-title-inline-stats{grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px}
.viewer-title-stat{padding:14px 16px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.03));border:1px solid rgba(129,173,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.viewer-title-stat-accent,.viewer-watch-mini-accent{background:linear-gradient(135deg,rgba(56,159,255,.22),rgba(125,92,255,.18));border-color:rgba(92,182,255,.3)}
.viewer-title-stat span,.viewer-watch-mini span{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.64)}
.viewer-title-stat strong,.viewer-watch-mini strong{font-size:16px;line-height:1.2;color:#eef5ff}
.viewer-title-stat-wide{grid-column:1/-1}
.viewer-title-tags{margin-top:10px}
.viewer-genre-tag{background:linear-gradient(135deg,rgba(79,169,255,.18),rgba(129,102,255,.18));border-color:rgba(124,183,255,.22);color:#eff6ff}
.viewer-title-cast-side{height:100%;min-height:100%;max-height:none;display:grid;grid-template-rows:auto minmax(0,1fr);align-self:stretch;background:linear-gradient(180deg,rgba(17,29,58,.96),rgba(10,18,37,.98));border:1px solid rgba(129,173,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 40px rgba(2,8,20,.18)}
.viewer-title-cast-list{padding-right:0;gap:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none!important;-ms-overflow-style:none!important;user-select:none}
.viewer-title-cast-list::-webkit-scrollbar{display:none!important;width:0;height:0}
.viewer-title-cast-chip{padding:10px 12px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.055));border:1px solid rgba(255,255,255,.11);box-shadow:0 10px 22px rgba(0,0,0,.12)}
.viewer-title-cast-chip:hover{background:linear-gradient(180deg,rgba(92,182,255,.14),rgba(255,255,255,.08));border-color:rgba(92,182,255,.26)}
.viewer-mini-arrow{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border-color:rgba(255,255,255,.10)}
.viewer-watch-panel{padding:22px 22px 24px}
.viewer-watch-inner{width:min(1180px,100%);margin-left:auto;margin-right:auto}
.viewer-watch-head{align-items:flex-start}
.viewer-watch-player{max-width:1040px}
.viewer-player-shell{aspect-ratio:16/9;max-height:min(48vh,560px);min-height:260px}
.viewer-episode-row{justify-content:center;flex-wrap:wrap;padding:16px 0 4px}
.viewer-watch-bottom-row{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
.viewer-player-note{min-height:180px;display:flex;flex-direction:column;justify-content:flex-start;gap:12px}
.viewer-watch-genres{display:flex;flex-wrap:wrap;gap:8px}
.viewer-watch-side-stats{align-self:stretch;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(96px,auto)}
.viewer-watch-mini{padding:14px 16px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.08)}
.viewer-watch-mini-wide{grid-column:1/-1}
@media(max-width:1180px){.viewer-title-layout.viewer-title-layout-with-cast{grid-template-columns:200px minmax(0,1fr)!important}.viewer-title-cast-side{grid-column:1/-1;min-height:0}.viewer-watch-bottom-row{grid-template-columns:1fr}.viewer-watch-player{max-width:100%}}
@media(max-width:700px){.viewer-catalog-trigger.viewer-catalog-trigger-centered{width:min(92vw,560px)}.viewer-title-hero{min-height:0}.viewer-title-inline-stats{grid-template-columns:1fr 1fr}.viewer-title-stat-wide,.viewer-watch-mini-wide{grid-column:1/-1}.top-home-button{padding:12px 18px}}


/* v1.5.26.68 — fixed viewer status chips + dubber project library drag/preview */
.project-library-shell,
.project-library-stage,
.project-library-viewport{
  max-width:100%;
  min-width:0;
}
.project-library-shell{overflow:hidden}
.project-library-viewport{cursor:grab;overscroll-behavior-x:contain}
.project-library-viewport.dragging{cursor:grabbing;user-select:none;-webkit-user-select:none;scroll-behavior:auto!important}
.project-library-viewport.dragging .project-library-card{pointer-events:none}
.project-library-track.expanded{gap:18px;padding:6px 10px 16px}
.project-library-shell.expanded .project-library-card,
.project-library-card.expanded{
  flex:0 0 clamp(250px,20vw,280px)!important;
  width:clamp(250px,20vw,280px)!important;
  max-width:280px!important;
}
.project-library-shell.expanded .project-library-surface{
  height:376px!important;
  border-radius:28px!important;
  box-shadow:0 24px 48px rgba(0,0,0,.26)!important;
}
.project-library-shell.expanded .project-library-card:hover .project-library-surface,
.project-library-shell.expanded .project-library-card:focus-visible .project-library-surface{
  transform:translateY(-4px) scale(1.01)!important;
}
.project-library-media img{
  object-fit:cover;
  object-position:center top;
}
.project-library-shade{
  background:linear-gradient(180deg,
    rgba(6,12,24,0) 0%,
    rgba(6,12,24,.04) 42%,
    rgba(6,12,24,.28) 70%,
    rgba(6,12,24,.58) 100%)!important;
}
.project-library-overlay{
  left:16px!important;
  right:16px!important;
  bottom:16px!important;
  gap:6px!important;
}
.project-library-shell.expanded .project-library-title{
  font-size:21px!important;
  line-height:1.08!important;
  -webkit-line-clamp:2;
  text-shadow:0 4px 18px rgba(0,0,0,.42)!important;
}
.project-library-shell.expanded .project-library-meta{
  font-size:12px!important;
  color:rgba(255,255,255,.78)!important;
  text-shadow:0 3px 12px rgba(0,0,0,.34)!important;
}
.project-library-status .status-badge{
  min-height:23px;
  padding:0 11px!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.01em;
  background:rgba(7,17,36,.64)!important;
  border:1px solid rgba(226,238,255,.16)!important;
  color:rgba(242,247,255,.94)!important;
  backdrop-filter:blur(12px);
  box-shadow:0 8px 18px rgba(0,0,0,.18)!important;
  text-shadow:none!important;
}
.project-library-status .status-badge.active{
  background:rgba(20,67,110,.66)!important;
  border-color:rgba(100,190,255,.34)!important;
  color:#e4f5ff!important;
}
.project-library-status .status-badge.finished{
  background:rgba(20,78,51,.66)!important;
  border-color:rgba(112,211,138,.32)!important;
}
.project-library-status .status-badge.dropped{
  background:rgba(88,30,42,.68)!important;
  border-color:rgba(215,75,98,.32)!important;
}
.viewer-rail-topline{
  left:16px!important;
  top:15px!important;
  right:auto!important;
  max-width:calc(100% - 32px);
  justify-content:flex-start!important;
  pointer-events:none;
}
.viewer-rail-topline .project-library-status{max-width:100%}
.viewer-rail-topline .status-badge{
  min-height:24px!important;
  height:24px!important;
  max-width:100%;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:750!important;
  letter-spacing:.005em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  background:rgba(7,18,38,.58)!important;
  border-color:rgba(232,242,255,.18)!important;
  color:rgba(245,249,255,.94)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.045)!important;
  backdrop-filter:blur(14px);
}
.viewer-rail-topline .status-badge.active{
  background:rgba(20,73,118,.62)!important;
  border-color:rgba(92,182,255,.36)!important;
  color:#e7f6ff!important;
}
.viewer-rail-glow{
  background:radial-gradient(circle at 20% 0%, rgba(82,182,255,.13), transparent 28%),
    linear-gradient(180deg, rgba(8,14,28,.02), rgba(8,14,28,.06) 54%, rgba(8,14,28,.44))!important;
}
.viewer-rail-hover{
  background:linear-gradient(180deg, rgba(12,24,48,.42), rgba(7,14,30,.88))!important;
}
.viewer-rail-media img{
  object-position:center top;
}
@media(max-width:1100px){
  .project-library-shell.expanded .project-library-card,
  .project-library-card.expanded{flex-basis:250px!important;width:250px!important;max-width:250px!important}
  .project-library-shell.expanded .project-library-surface{height:350px!important}
}
@media(max-width:680px){
  .project-library-shell.expanded .project-library-card,
  .project-library-card.expanded{flex-basis:220px!important;width:220px!important;max-width:220px!important}
  .project-library-shell.expanded .project-library-surface{height:315px!important}
  .project-library-shell.expanded .project-library-stage{padding-left:30px!important;padding-right:30px!important}
}
