*{box-sizing:border-box}
:root{
 --bg:#0b0e12;--panel:#11161c;--panel2:#171d24;--line:#27303a;
 --text:#eef2f6;--muted:#8d99a6;--accent:#6ea8fe;--danger:#ff6b6b;
}
body{
 margin:0;background:var(--bg);color:var(--text);
 font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 min-height:100vh
}
header{
 height:72px;border-bottom:1px solid var(--line);background:#0d1116;
 display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:5
}
.brand{font-size:21px;font-weight:800;letter-spacing:-.4px}
.brand small{font-size:11px;color:var(--muted);font-weight:500;margin-left:8px}
.layout{max-width:1280px;margin:auto;padding:24px;display:grid;grid-template-columns:1fr 330px;gap:20px}
.main,.sidebar{background:var(--panel);border:1px solid var(--line);border-radius:18px}
.main{overflow:hidden}
.toolbar{
 min-height:66px;padding:12px 16px;border-bottom:1px solid var(--line);
 display:flex;align-items:center;gap:9px;flex-wrap:wrap
}
.toolbar .title{font-weight:700;margin-right:auto}
button,select,input{font:inherit}
button{
 border:1px solid var(--line);background:var(--panel2);color:var(--text);
 border-radius:9px;padding:9px 13px;cursor:pointer
}
button:hover{border-color:#566474}
button.primary{background:var(--accent);color:#07101b;border-color:var(--accent);font-weight:700}
button.danger:hover{border-color:var(--danger);color:var(--danger)}
.drop{
 margin:16px;border:1px dashed #3c4754;border-radius:14px;min-height:125px;
 display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;
 background:#0d1217;transition:.18s
}
.drop:hover,.drop.drag{border-color:var(--accent);background:#121a23}
.drop strong{display:block;font-size:16px}
.drop span{display:block;color:var(--muted);font-size:13px;margin-top:5px}
input[type=file]{display:none}
.file-list{border-top:1px solid var(--line)}
.file-item{
 display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;
 align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);
 transition:.15s
}
.file-item:hover{background:#141a21}
.thumb{
 width:64px;height:64px;border-radius:9px;object-fit:contain;background:#080b0f;
 border:1px solid var(--line)
}
.name{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meta{font-size:12px;color:var(--muted);margin-top:4px}
.status{font-size:12px;color:var(--muted);margin-top:3px}
.actions{display:flex;gap:6px}
.actions button{padding:7px 9px;font-size:12px}
.progress{height:4px;background:#242c35;border-radius:99px;margin-top:7px;overflow:hidden}
.progress i{display:block;height:100%;width:0;background:var(--accent);transition:.2s}
.empty{text-align:center;color:var(--muted);padding:55px 20px}
.sidebar{padding:18px;height:max-content;position:sticky;top:92px}
.sidebar h2{font-size:15px;margin:0 0 16px}
.field{padding:12px 0;border-bottom:1px solid var(--line)}
.field:last-of-type{border-bottom:0}
.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px;text-transform:uppercase}
.field input,.field select{
 width:100%;background:var(--panel2);border:1px solid var(--line);color:var(--text);
 border-radius:9px;padding:9px;outline:none
}
.field input[type=range]{padding:0}
.quality-line{display:flex;justify-content:space-between}
#qualityValue{color:var(--accent);font-weight:700}
.side-actions{display:grid;gap:8px;margin-top:18px}
.info{font-size:11px;color:var(--muted);line-height:1.55;margin-top:15px}
.footer{text-align:center;color:#59636e;font-size:11px;padding:22px}


:root{
  --shadow:0 18px 50px rgba(0,0,0,.18);
  --header:rgba(13,17,22,.88);
}
body{
  background:
    radial-gradient(circle at 15% 0%, rgba(110,168,254,.08), transparent 30%),
    var(--bg);
  transition:background .25s ease,color .25s ease;
}
header{
  background:var(--header);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 1px 0 rgba(255,255,255,.02);
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:11px}
.brand-mark{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),#8b7cff);
  color:#07101b;font-size:12px;font-weight:900;
  box-shadow:0 8px 24px rgba(110,168,254,.18);
}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-btn,.lang-select{
  min-height:40px;border-radius:10px;
  background:var(--panel2);border:1px solid var(--line);
}
.icon-btn{display:flex;align-items:center;gap:7px;padding:8px 11px}
.lang-select{padding:8px 30px 8px 10px;color:var(--text)}
button{transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}
button:hover{transform:translateY(-1px)}
button.primary{box-shadow:0 8px 22px rgba(110,168,254,.14)}
.main,.sidebar{box-shadow:var(--shadow)}
.drop{box-shadow:inset 0 0 0 1px rgba(255,255,255,.01)}

@keyframes pageIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes floatIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes pulseGlow{0%,100%{box-shadow:0 8px 22px rgba(110,168,254,.14)}50%{box-shadow:0 10px 30px rgba(110,168,254,.28)}}
body{animation:pageIn .55s ease both}
.main,.sidebar{animation:floatIn .6s ease both}
.sidebar{animation-delay:.08s}
.file-item{animation:floatIn .38s ease both}
.drop{transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease}
.drop:hover,.drop.drag{transform:scale(1.008);box-shadow:0 0 0 1px rgba(110,168,254,.18),0 12px 34px rgba(110,168,254,.08)}
button.primary{animation:pulseGlow 3s ease-in-out infinite}
.brand-mark{transition:transform .3s ease,box-shadow .3s ease}
.brand:hover .brand-mark{transform:rotate(-6deg) scale(1.06);box-shadow:0 10px 30px rgba(110,168,254,.3)}
.file-item:hover{transform:translateX(2px)}
.progress i{transition:width .35s ease}
.footer{line-height:1.8;animation:floatIn .7s ease .16s both}
.footer strong{color:var(--text);font-weight:700}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.field select{
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease;
}
.field select:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 8px 24px rgba(110,168,254,.12);
}
.field select:focus{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(110,168,254,.12),0 10px 28px rgba(110,168,254,.12);
}
.field:has(select:focus){
  animation:fieldFocus .28s ease both;
}
@keyframes fieldFocus{
  0%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
  100%{transform:translateY(0)}
}

@media(max-width:850px){
 .layout{grid-template-columns:1fr;padding:12px}
 .sidebar{position:static}
}
@media(max-width:600px){
 header{height:60px;padding:0 16px}
 .layout{padding:8px}
 .main,.sidebar{border-radius:13px}
 .file-item{grid-template-columns:52px minmax(0,1fr);gap:11px;padding:11px}
 .thumb{width:52px;height:52px}
 .actions{grid-column:1/-1}
 .actions button{flex:1}
 .drop{margin:10px;min-height:105px}
 .toolbar{padding:10px}
}
html{color-scheme:dark}html[data-theme="light"]{color-scheme:light}\n
@media(prefers-reduced-motion:reduce){
  .field select,.field:has(select:focus){
    animation:none!important;
    transition:none!important;
    transform:none!important;
  }
}

.cookie-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:100;
  animation:cookieIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.cookie-banner[hidden]{display:none}
.cookie-content{
  max-width:1180px;
  margin:auto;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(17,22,28,.96);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.38);
  backdrop-filter:blur(14px);
}
.cookie-text{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.cookie-text strong{font-size:15px}
.cookie-text span{color:var(--muted);font-size:13px}
.cookie-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cookie-actions button,.cookie-more{
  min-height:38px;
  padding:8px 14px;
  border-radius:9px;
  border:1px solid var(--line);
  text-decoration:none;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
}
.cookie-more{
  color:var(--accent);
  background:transparent;
}
.cookie-accept{
  color:#07111e;
  background:var(--accent);
  border-color:var(--accent)!important;
}
.cookie-decline{
  color:var(--text);
  background:var(--panel2);
}
.cookie-actions button:hover,.cookie-more:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(110,168,254,.16);
}
@keyframes cookieIn{
  from{opacity:0;transform:translateY(28px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:700px){
  .cookie-banner{left:10px;right:10px;bottom:10px}
  .cookie-content{align-items:stretch;flex-direction:column}
  .cookie-actions{flex-wrap:wrap}
  .cookie-actions>*{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .cookie-banner{animation:none}
  .cookie-actions button,.cookie-more{transition:none}
}
