/* gifmaker 固有スタイル */
.tool-main { max-width: 760px; }
[hidden] { display: none !important; }
.pt-tabs { overflow: visible; }

.gm-vwrap { margin-top: 0.9rem; border: 1px solid var(--border); border-radius: var(--pt-r); background: #111; text-align: center; }
.gm-vwrap video { max-width: 100%; max-height: 320px; display: block; margin: 0 auto; }
.gm-vname { margin-top: 0.4rem; font-size: 0.85rem; color: var(--text-sub); word-break: break-all; }
.gm-range { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.7rem; }
.gm-inl { display: flex; gap: 0.4rem; align-items: center; }
.gm-inl input { flex: 1; min-width: 0; margin: 0; }
.gm-inl .btn { width: auto; margin: 0; white-space: nowrap; }

.gm-ilist { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.gm-ilist:empty { display: none; }
.gm-item { border: 1px solid var(--border); border-radius: var(--pt-r); background: var(--surface); padding: 0.35rem; }
.gm-item .th { height: 80px; display: grid; place-items: center; background: var(--pt-canvas-bg); border-radius: 4px; overflow: hidden; }
.gm-item .th img { max-width: 100%; max-height: 100%; display: block; }
.gm-item .nm { font-size: 0.72rem; color: var(--text-sub); margin: 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-item .bt { display: flex; gap: 0.2rem; }
.gm-item .bt button { flex: 1; min-width: 0; padding: 0.2rem 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 0.85rem; cursor: pointer; }
.gm-item .bt button:hover:not(:disabled) { border-color: var(--pt-accent); }
.gm-item .bt button:disabled { opacity: 0.35; cursor: default; }
.gm-ibar { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; gap: 0.5rem; }

.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.2rem 0.9rem; }
.gm-opts { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
.gm-prog { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
.gm-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.gm-bar i { display: block; height: 100%; width: 0; background: var(--pt-accent); }
#gm-progt { font-size: 0.85rem; color: var(--text-sub); min-width: 9em; text-align: right; }

.gm-out { text-align: center; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--pt-r); background: var(--pt-canvas-bg); }
.gm-out img { max-width: 100%; height: auto; display: inline-block; }
.gm-meta { margin: 0.6rem 0; font-size: 0.9rem; color: var(--text-sub); }
#gm-dl { width: auto; display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 520px) {
  .gm-range { grid-template-columns: 1fr; }
}
