/* OnlineImageEditorFree.com — GIF editor UI */
.gif-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; max-width: 1000px; margin-inline: auto; }
.gif-stage { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow-sm); }
.gif-canvas-box { display: grid; place-items: center; min-height: 260px;
  background: linear-gradient(45deg,#eef2f7 25%,transparent 25%),linear-gradient(-45deg,#eef2f7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef2f7 75%),linear-gradient(-45deg,transparent 75%,#eef2f7 75%);
  background-size: 18px 18px; background-position: 0 0,0 9px,9px -9px,-9px 0; background-color: #f8fafc; border-radius: var(--r-sm); }
.gif-canvas-box canvas { max-width: 100%; height: auto; box-shadow: var(--shadow-sm); border-radius: 4px; }
.gif-playbar { display: flex; align-items: center; gap: .6rem; justify-content: center; margin-top: .8rem; }
.gif-playbar button { background: var(--primary-soft); color: var(--primary-hover); border: 0; border-radius: var(--r-pill); padding: .5rem 1rem; cursor: pointer; font-weight: 600; font-size: .85rem; }
.gif-playbar button:hover { background: var(--sky-200); }
.gif-meta { text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: .5rem; }

.gif-strip { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem; margin-top: .8rem; background: var(--bg-soft); border-radius: var(--r-sm); min-height: 72px; }
.gif-frame { flex: 0 0 auto; position: relative; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; }
.gif-frame.active { border-color: var(--primary); }
.gif-frame canvas { height: 54px; width: auto; display: block; pointer-events: none; }
.gif-frame .fn { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(15,23,42,.6); color: #fff; font-size: .6rem; text-align: center; pointer-events: none; }
.gif-frame.dragging { opacity: .45; }
.gif-frame.drop-target { border-color: var(--primary); box-shadow: -3px 0 0 0 var(--primary); }
.gif-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; line-height: 16px;
  border: 0; border-radius: 50%; background: rgba(15,23,42,.55); color: #fff; font-size: .7rem; cursor: pointer;
  opacity: 0; transition: opacity .12s, background .12s; z-index: 2; }
.gif-frame:hover .gif-del, .gif-frame.active .gif-del { opacity: 1; }
.gif-del:hover { background: var(--danger); }
@media (hover: none) { .gif-del { opacity: 1; } }

.gif-controls { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.gif-controls .pf { margin-bottom: 1rem; }
.gif-controls label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-700); margin-bottom: .35rem; }
.gif-controls input[type="range"] { width: 100%; accent-color: var(--primary); }
.gif-controls input[type="number"], .gif-controls input[type="text"], .gif-controls select { width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: .5rem .6rem; font-family: inherit; font-size: .88rem; }
.gif-controls .pf-row { display: flex; gap: .5rem; align-items: center; }
.gif-controls .pf-val { font-size: .78rem; color: var(--text-muted); min-width: 46px; text-align: right; }
.gif-stat { display: flex; justify-content: space-between; font-size: .88rem; padding: .3rem 0; }
.gif-stat b { color: var(--ink-900); }
.gif-progress { height: 8px; background: var(--ink-100); border-radius: 999px; overflow: hidden; margin: .6rem 0; }
.gif-progress > i { display: block; height: 100%; width: 0; background: var(--grad-cta); transition: width .15s linear; }
@media (max-width: 760px) { .gif-grid { grid-template-columns: 1fr; } }
