.gif-frame-extractor-page{
  max-width:1280px;
  margin:0 auto;
  padding:34px 18px 46px;
  color:var(--text);
}
.gif-frame-extractor-page *{
  box-sizing:border-box;
}
.gif-frame-extractor-page h1{
  margin:0 0 12px;
  text-align:center;
  font-size:clamp(32px,5vw,52px);
  line-height:1.05;
  text-shadow:0 0 24px rgba(120,90,255,.24);
}
.gfe-intro{
  max-width:880px;
  margin:0 auto 24px;
  text-align:center;
  color:#c9c9d6;
  font-size:clamp(15px,2vw,18px);
  line-height:1.6;
}
.gfe-upload{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:132px;
  margin-bottom:18px;
  padding:20px;
  border:2px dashed rgba(255,255,255,.18);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(120,90,255,.12),rgba(0,210,255,.06)),var(--content);
  cursor:pointer;
  transition:.2s ease;
}
.gfe-upload:hover,
.gfe-upload.gfe-dragover{
  border-color:var(--link);
  box-shadow:0 0 28px rgba(120,90,255,.2);
  transform:translateY(-1px);
}
.gfe-upload-label{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  font-size:20px;
  font-weight:800;
  color:var(--link);
  cursor:pointer;
}
.gfe-upload input{
  display:none;
}
.gfe-upload p{
  margin:9px 0 0;
  color:#aaaabd;
  text-align:center;
  line-height:1.45;
}
.gfe-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:18px;
  align-items:start;
}
.gfe-main{
  display:grid;
  gap:18px;
}
.gfe-panel,
.gfe-section{
  padding:16px;
  background:var(--content);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.gfe-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.gfe-panel-head h2{
  margin:0;
  color:var(--link);
  font-size:20px;
}
.gfe-panel-head span{
  color:#aaaabd;
  font-size:13px;
}
.gfe-preview-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:380px;
  padding:14px;
  overflow:hidden;
  border-radius:16px;
  background:
    linear-gradient(45deg,rgba(255,255,255,.045) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(255,255,255,.045) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(255,255,255,.045) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.045) 75%);
  background-size:22px 22px;
  background-position:0 0,0 11px,11px -11px,-11px 0;
  border:1px solid rgba(255,255,255,.08);
}
#gfePreviewCanvas{
  display:block;
  max-width:100%;
  max-height:520px;
  image-rendering:auto;
}
.gfe-empty-preview,
.gfe-empty-grid{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#aaaabd;
  text-align:center;
}
.gfe-empty-preview{
  position:absolute;
  inset:0;
}
.gfe-empty-preview i{
  font-size:44px;
  color:rgba(255,255,255,.22);
}
.gfe-player-bar{
  display:grid;
  grid-template-columns:auto auto auto minmax(120px,1fr) auto;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.gfe-player-bar button,
.gfe-frame-tools button,
.gfe-actions button{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  color:#fff;
  background:rgba(255,255,255,.1);
  cursor:pointer;
  transition:.18s ease;
}
.gfe-player-bar button:hover,
.gfe-frame-tools button:hover,
.gfe-actions button:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}
.gfe-player-bar input{
  width:100%;
}
.gfe-player-bar span{
  color:#c9c9d6;
  font-weight:800;
  white-space:nowrap;
}
.gfe-frame-tools{
  display:flex;
  gap:8px;
}
.gfe-frame-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
  max-height:430px;
  overflow:auto;
  padding:6px;
  border-radius:14px;
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.06);
}
.gfe-frame-card{
  position:relative;
  min-height:104px;
  padding:7px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition:.16s ease;
}
.gfe-frame-card:hover,
.gfe-frame-card.gfe-active{
  border-color:var(--link);
  box-shadow:0 0 18px rgba(120,90,255,.18);
}
.gfe-frame-card.gfe-selected{
  outline:2px solid rgba(0,210,255,.65);
}
.gfe-frame-card canvas,
.gfe-frame-card img{
  display:block;
  width:100%;
  height:70px;
  object-fit:contain;
  border-radius:10px;
  background:rgba(0,0,0,.18);
}
.gfe-frame-card span{
  display:flex;
  justify-content:space-between;
  gap:6px;
  margin-top:6px;
  color:#c9c9d6;
  font-size:12px;
}
.gfe-controls{
  position:sticky;
  top:14px;
}
.gfe-control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.gfe-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#c9c9d6;
  font-size:13px;
  font-weight:800;
}
.gfe-field select,
.gfe-field input[type="number"]{
  width:100%;
  min-height:40px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  color:var(--text);
  background:rgba(0,0,0,.22);
  outline:none;
}
.gfe-field select:focus,
.gfe-field input:focus{
  border-color:var(--link);
  box-shadow:0 0 0 3px rgba(120,90,255,.14);
}
.gfe-field option{
  color:#f3f3ff;
  background:#171525;
}
.gfe-field input[type="range"]{
  width:100%;
}
.gfe-field b{
  color:var(--link);
}
.gfe-meta-box{
  margin-top:14px;
  padding:13px;
  border-radius:16px;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.07);
}
.gfe-meta-box h3{
  margin:0 0 10px;
  color:var(--link);
  font-size:17px;
}
.gfe-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-top:1px solid rgba(255,255,255,.06);
  color:#bfc0cf;
}
.gfe-meta-row:first-of-type{
  border-top:0;
}
.gfe-meta-row b{
  color:#fff;
  text-align:right;
}
.gfe-actions{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.gfe-action-primary{
  background:linear-gradient(135deg,#7c5cff,#00cfff)!important;
}
.gfe-action-download{
  background:linear-gradient(135deg,#17b978,#39d98a)!important;
}
.gfe-action-danger{
  background:linear-gradient(135deg,#b7334b,#ff5b73)!important;
}
.gfe-status{
  margin-top:12px;
  padding:11px 12px;
  color:#c9c9d6;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07);
  border-radius:13px;
  line-height:1.45;
}
.gfe-section{
  margin-top:22px;
}
.gfe-section h2{
  margin:0 0 12px;
  color:var(--link);
}
.gfe-section ul{
  margin:0;
  padding-left:20px;
}
.gfe-section li{
  margin-bottom:8px;
  color:#c9c9d6;
  line-height:1.55;
}
@media(max-width:980px){
  .gfe-layout{
    grid-template-columns:1fr;
  }
  .gfe-controls{
    position:static;
  }
}
@media(max-width:640px){
  .gif-frame-extractor-page{
    padding:28px 12px 38px;
  }
  .gfe-preview-wrap{
    min-height:280px;
  }
  .gfe-player-bar{
    grid-template-columns:1fr 1fr 1fr;
  }
  .gfe-player-bar input,
  .gfe-player-bar span{
    grid-column:1/-1;
  }
  .gfe-control-grid{
    grid-template-columns:1fr;
  }
  .gfe-frame-grid{
    grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
  }
}
